-
Notifications
You must be signed in to change notification settings - Fork 67
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
WG opening listing sorted in chronological order (#2513) #4191
Open
chrlschwb
wants to merge
16
commits into
Joystream:dev
Choose a base branch
from
chrlschwb:fix/2513-sortingList
base: dev
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ffdc640
test
chrlschwb d1e0813
Update packages/ui/src/working-groups/hooks/useOpeningsPagination.ts
chrlschwb c564b99
start dev
chrlschwb 19394fd
Merge branch 'dev' of https://github.com/Joystream/pioneer into dev
chrlschwb e294b08
Merge branch 'dev' of https://github.com/Joystream/pioneer into dev
chrlschwb 3848398
Merge branch 'Joystream:dev' into dev
chrlschwb d9240cb
Merge branch 'Joystream:dev' into dev
chrlschwb 2f1a367
Merge branch 'Joystream:dev' into dev
chrlschwb 60f8d5f
Merge branch 'Joystream:dev' into dev
chrlschwb 61e07c4
Merge branch 'Joystream:dev' into dev
chrlschwb 3a08da2
Merge branch 'Joystream:dev' into dev
chrlschwb 38cdfad
finish review fixed
chrlschwb 28f31df
Merge branch 'dev' of https://github.com/chrlschwb/pioneer into fix/2…
chrlschwb 7aae86f
update
chrlschwb 5a6ff7f
update finish
chrlschwb 98cc719
update
chrlschwb File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/ui/src/working-groups/queries/__generated__/workingGroups.generated.tsx
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly this #2513 (comment), the issue is that the openings are ordered by ascending creation date. So this line (
order: [WorkingGroupOpeningOrderByInput.CreatedAtDesc, WorkingGroupOpeningOrderByInput.RuntimeIdDesc]
looks fine to me, but the problem is still not solved on the preview branch/working-groups/openings
:So I'm guessing that maybe this
useOpeningsPagination
is used to query the openings on a different page. E.g on the WG past openings page the order is correct even in production.In conclusion I think this change should be reversed and either the hook used to query
/working-groups/openings
should be fixed or an even better solution would be to reuse the same hook to query openings everywhere.Also please get reviews from BWG workers before setting
jsg-code-review
.