Customize search view in docker environment

Infos:

  • Used Zammad version: 6.5.2
  • Used Zammad installation type: docker-compose
  • Operating system: Debian-13.2
  • Browser + version: all

Situation

A customer asks for adding a column with updated_at in the search view.

I found this closed ticket and looked up the line to patch in the current code etc.

Now I found that recompiling the assets doesn’t work within the docker container because of missing nodejs (if I understand correctly).

An additional search found this Dockerfile, I adjusted it but so far it fails to build for me (I edited the mentioned Dockerfile to use the current 6.5.2 image, sure)

Question

Is there a relatively easy way to get the patched search.coffee into my stack?

It should be maintainable, to be able to use upstream docker images if possible.

I assume it’s not enough to “overlay” that file by using a docker-compose volume for this file (because that recompile step is missing).

Any hints welcome, thanks in advance.

Is my approach valid?

checked out GitHub - zammad/zammad: Zammad is a web based open source helpdesk/customer support system.

I edited the file:

diff --git a/app/assets/javascripts/app/controllers/search.coffee b/app/assets/javascripts/app/controllers/search.coffee
index 24d933f8ea..3a73da475f 100644
--- a/app/assets/javascripts/app/controllers/search.coffee
+++ b/app/assets/javascripts/app/controllers/search.coffee
@@ -2,7 +2,7 @@ class App.Search extends App.Controller
   @extend App.PopoverProvidable
   @extend App.TicketMassUpdatable
 
-  @ticketSearchColumns: [ 'number', 'title', 'customer', 'group', 'owner', 'created_at' ]
+  @ticketSearchColumns: [ 'number', 'title', 'customer', 'group', 'owner', 'created_at', 'updated_at' ]
 
   elements:
     '.js-search': 'searchInput'

And ran docker build -t myzammad:6.5.2 .

Then I edited my docker-compose.override.yml to use this image for zammad-nginx:

  zammad-nginx:
    image: myzammad:6.5.2
    ports:
      - "9003:8080"

The search page doesn’t show “updated_at” :frowning:

What do I miss?

bump

I’d really appreciate some tips here …