pets-oss / pets-front

Pets Information System Front-end
MIT License
4 stars 36 forks source link

Update Events listing (URGENT) #179

Open saulyz opened 3 years ago

saulyz commented 3 years ago

Recently the Events structure has changed in the backend, as a result, frontend pages now have Graphql Error. There are 2 scopes of a problem:

Let's use a short query to get the Events info in both scopes: { events { id, animalId, group, type, dateTime, createTime author }} This info is just enough to render the events list. Event details should be queried only in Event previews, but not here.

events query can have params for filtering in the Animal Details page: events(animalId: 2, groups: [General, Medical]) - in the groups, we have an array and can specify 1 or many groups. Please connect the Event filtering UI to the query with these group params.

saulyz commented 3 years ago

Note, #190 will have an effect on that. Fixes in this PR will render the list (which was not present), but will not use the Event data. So Icon, Author, dates and proper Event title are still missing.