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

Rewrite DatasetVersionFilesServiceBean QueryDSL queries using JPA Criteria and remove the QueryDSL library from the application dependencies #10041

Merged
merged 11 commits into from
Oct 26, 2023

Conversation

GPortas
Copy link
Contributor

@GPortas GPortas commented Oct 25, 2023

What this PR does / why we need it:

As decided at the frontend weekly meeting on 19th October, DatasetVersionFilesServiceBean has been rewritten using JPA Criteria instead of QueryDSL. The QueryDSL library has been removed.

Which issue(s) this PR closes:

Suggestions on how to test this:

The following API endpoints use the rewritten queries:

Despite we can test manual curl calls to these endpoints by sending different combinations of parameters (Described in the Native API documentation) and verify that they work correctly, testing all cases is extensive. Integration tests mainly cover all possible scenarios, so to verify the new implementation we can check that all test cases still pass as they did with the previous QueryDSL implementation.

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

No

Is there a release notes update needed for this change?:

No

@GPortas GPortas added the SPA These changes are required for the Dataverse SPA label Oct 25, 2023
@GPortas GPortas self-assigned this Oct 25, 2023
@github-actions

This comment has been minimized.

…ing JPA Criteria and removed QueryDSL references from the class
@github-actions

This comment has been minimized.

@github-actions
Copy link

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:10028-rewrite-querydsl-queries
ghcr.io/gdcc/configbaker:10028-rewrite-querydsl-queries

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@pdurbin
Copy link
Member

pdurbin commented Oct 25, 2023

@GPortas I think you can safely update the description to say this PR closes this issue as well:

I say this because I checked https://coveralls.io/github/IQSS/dataverse and this branch sent the first Coveralls report we've received since branches that pull in the following PR was merged:

Here's a screenshot:

Screenshot 2023-10-25 at 10 23 07 AM

@pdurbin
Copy link
Member

pdurbin commented Oct 25, 2023

As mentioned in standup and Slack, I kicked off API tests here: https://github.com/gdcc/api-test-runner/actions/runs/6642486541

Using https://github.com/gdcc/api-test-runner Click Actions, then manual then “Run workflow” and change the branch like this:

Screenshot 2023-10-25 at 11 14 13 AM

Here’s the issue to automate this (need prioritization):

@GPortas
Copy link
Contributor Author

GPortas commented Oct 25, 2023

@pdurbin API tests are passing on: https://github.com/gdcc/api-test-runner/actions/runs/6642486541

@GPortas GPortas marked this pull request as ready for review October 25, 2023 16:21
@GPortas GPortas removed their assignment Oct 25, 2023
@GPortas GPortas added the Size: 3 A percentage of a sprint. 2.1 hours. label Oct 26, 2023
@rtreacy rtreacy self-assigned this Oct 26, 2023
Copy link
Contributor

@rtreacy rtreacy left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks

@rtreacy rtreacy removed their assignment Oct 26, 2023
@kcondon kcondon assigned kcondon and unassigned kcondon Oct 26, 2023
@kcondon kcondon merged commit 6b2bcfb into develop Oct 26, 2023
17 checks passed
@kcondon kcondon deleted the 10028-rewrite-querydsl-queries branch October 26, 2023 23:28
@pdurbin pdurbin added this to the 6.1 milestone Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Size: 3 A percentage of a sprint. 2.1 hours. SPA These changes are required for the Dataverse SPA
Projects
None yet
4 participants