-
Notifications
You must be signed in to change notification settings - Fork 85
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
Moving Data Distribution API into the Vitro codebase #484
base: main
Are you sure you want to change the base?
Conversation
@markuskotte agreed to review German language parts, when and if necessary. |
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.
@litvinovg thanks for nice and significant contribution. I have posted a couple of comments.
...ain/java/edu/cornell/library/scholars/webapp/controller/api/DistributeDataApiController.java
Outdated
Show resolved
Hide resolved
...u/cornell/library/scholars/webapp/controller/api/distribute/DataDistributionApi_overview.png
Outdated
Show resolved
Hide resolved
...ll/library/scholars/webapp/controller/api/distribute/rdf/graphbuilder/EmptyGraphBuilder.java
Outdated
Show resolved
Hide resolved
...library/scholars/webapp/controller/api/distribute/rdf/graphbuilder/ParallelGraphBuilder.java
Outdated
Show resolved
Hide resolved
...brary/scholars/webapp/controller/api/distribute/rdf/graphbuilder/ThreadsafeGraphBuilder.java
Outdated
Show resolved
Hide resolved
home/src/main/resources/rdf/i18n/en_US/interface-i18n/firsttime/vitro_UiLabel.ttl
Outdated
Show resolved
Hide resolved
home/src/main/resources/rdf/i18n/en_US/interface-i18n/firsttime/vitro_UiLabel.ttl
Show resolved
Hide resolved
...ain/java/edu/cornell/library/scholars/webapp/controller/api/DistributeDataApiController.java
Outdated
Show resolved
Hide resolved
home/src/main/resources/rdf/i18n/en_US/interface-i18n/firsttime/vitro_UiLabel.ttl
Show resolved
Hide resolved
92dabdc
to
301dfd1
Compare
takeover from graham rm unimplemented or unnecessary classes rm unused distributors added us text for vqt use local server port to make new request instead of port used by the client fix self signed certificate issue Renamed german translation properties checkstyle fixes
This reverts commit 7c2f665991b94c8d9f7e4f38342502815a4be8f7.
This reverts commit 915f96dc8549f11aad44c62a21f5096e02345528.
…ge and not used translations
…issions for each report.
…ta distributor edit pages
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.
Looks good. Very large PR but I managed to find some potential things to improve. If you have time please address some of them 😃 Good work!
...a/edu/cornell/library/scholars/webapp/controller/api/distribute/rdf/util/VariableBinder.java
Outdated
Show resolved
Hide resolved
RoleInfo roleCopy = role.clone(); | ||
roleInfos.add(roleCopy); | ||
operationsToRoles.put(operation.toLowerCase(), roleInfos); | ||
for (String roleUri : roles.keySet()) { |
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.
I believe that iterating using (Map.Entry<String, Map<String, Boolean>> entry : operations.entrySet())
will be more efficient.
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.
Do you see a performance issue there?
Suggested code looks less readable to me.
} else { | ||
EntityPolicyController.revokeAccess(entityUri, aot, ao, role.getUri()); | ||
if (Boolean.TRUE.equals(roles.get(role))) { |
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.
Is Boolean.TRUE.equals()
used for better readability?
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.
yes
api/src/main/java/edu/cornell/mannlib/vitro/webapp/auth/policy/PolicyLoader.java
Outdated
Show resolved
Hide resolved
api/src/main/java/edu/cornell/mannlib/vitro/webapp/reporting/OpenDopeWordReport.java
Outdated
Show resolved
Hide resolved
public void generateReport(OutputStream outputStream, RequestModelAccess request, UserAccount account) | ||
throws ReportGeneratorException { | ||
// Get the XML | ||
Document xmlDoc = generateXml(request, account); |
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.
Check is xmlDoc
is null
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.
not needed I think
VIVO GitHub issue
What does this pull request do?
Added the Data Distribution API and report generation into Vitro codebase.
Additional Notes:
Any additional information that you think would be helpful when reviewing this PR.
Interested parties
@chenejac @hauschke @brianjlowe
Reviewers' expertise
Candidates for reviewing this PR should have some of the following expertises:
Reviewers' report template
Please update the following template which should be used by reviewers.
General comment
A reviewer should provide here comments and suggestions for requested changes if any.
Testing
A reviewer should briefly describe here how it was tested
Code reviewing
A reviewer should briefly describe here which part was code reviewed