Open-event-frontend: Organizer Event Ticket Order Overview: Search not working, Date Sorting according to day instead of day, month, year

Created on 17 Mar 2020  路  18Comments  路  Source: fossasia/open-event-frontend

On the Organizer Event Ticket Order Overview page:

  • the search not working
  • the Date Sorting according is according to day instead of day, month, year. This means currently e.g. 18th February is in front of 15th of March.

Screenshot from 2020-03-17 19-14-08

High bug codeheat search

All 18 comments

@mariobehling Can I work on this?

Yes

@mariobehling Can you put the url?

You'll have to create an event and see the event management section

Hii @iamareebjamal the searchbar seems to be working fine . what is the issue with search bar .

Where are you checking the search bar?

On the Organizer Event Ticket Order Overview page:

  • the search not working

Actually, the search is working, rather than it's searching by identifier not by name.

const searchField = 'identifier';

@iamareebjamal how can I use here const searchField = 'user.name'; something like this. As it is giving error.

What's the error

When entering text in input box, it shows some thing went wrong and on console it shows ember data error. And also you have told me previously that user.name this kind of nesting is not supported in backend

Yes, it needs to have custom nested format to search for user name. Check how is it possible in ember tables

@maze-runnar Now you know how it is to be done, so please take this up

on adding any of other field here const searchField = 'identifier'; instead of identifier it throws error.
for example - const searchField='completedAt' it shows error 404.

I have also added following in models/order.js and added email in routes to search by email but again 404.

Email: computed('user.email', function() {
    return this.user.get('email');
  }),

Why do you want to search via completedAt? Makes no sense.

About searching via email, as discussed last time, to search through related relationships, you need to create the filter like { has : { user : { email ... } }. applySearchFilter function just adds scalar search fields. You have to add custom logic to add search filters for this table

Call me if you have doubts

Can we simplify this date sorting? One click latest order goes on the top and vice versa. Currently we have to click twice in order to get to the latest order? @mariobehling @iamareebjamal

@hpdang we can do it like, latest orders will on the top when first it loads and then sorting work in usual way?

Yes

Was this page helpful?
0 / 5 - 0 ratings