Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(client&server): add users and movement queries #14

Merged
merged 13 commits into from
Mar 7, 2024

Conversation

yusufkandemir
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@SirAuron SirAuron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the logic and everything here area looking good to me. 👏
There is just a problem with the pagination getting removed from the user table while its shouldn't and after that this one can be merged.

Comment on lines 75 to 76
:rows-per-page-options="ROWS_PER_PAGE_OPTIONS"
@request="onRequest"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this table, we shall preserve the pagination selection and navigation, and so this piece here is necessary.
Along with the updated function inside the body of the component onRequest

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, implemented server-side pagination and filtering. Used a lazy query as it's more optimal. Currently, with the books service, we initially fire the query twice with no benefit. So, we have to change them as well. I faced a bug(vuejs/apollo#1540) during the process, left the link in a code comment. We can also make some updates to our plugin to improve DX with lazy queries. https://github.com/dreamonkey/graphql-codegen-stack/tree/main/packages/codegen-plugin

@SirAuron SirAuron merged commit 0f4a30d into develop Mar 7, 2024
@SirAuron SirAuron deleted the feature/add-users-and-movements-query branch March 7, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants