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

Story/cite 183 - For authors, editors, etc. there needs to be an import from the IsisCB #278

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

PradnyaC11
Copy link
Contributor

@PradnyaC11 PradnyaC11 commented Jul 31, 2024

Guidelines for Pull Requests

If you haven't yet read our code review guidelines, please do so, You can find them here.

Please confirm the following by adding an x for each item (turn [ ] into [x]).

  • I have removed all code style changes that are not necessary (e.g. changing blanks across the whole file that don’t need to be changed, adding empty lines in parts other than your own code)
  • I am not making any changes to files that don’t have any effect (e.g. imports added that don’t need to be added)
  • I do not have any sysout statements in my code or commented out code that isn’t needed anymore
  • I am not reformatting any files in the wrong format or without cause.
  • I am not changing file encoding or line endings to something else than UTF-8, LF
  • My pull request does not show an insane amount of files being changed although my ticket only requires a few files being changed
  • I have added Javadoc/documentation where appropriate
  • I have added test cases where appropriate
  • I have explained any part of my code/implementation decisions that is not be self-explanatory

Please provide a brief description of your ticket

Right now, when adding/editing an author, editor, etc. an authority from Conceptpower or VIAF can be linked to it. There should be a third option to link it to an authority from the IsisCB.

The endpoint to query is: rest/authority/search/?query=einstein

Talk to Julia before starting to get you set up on the test server.

... Put ticket description here and add link to ticket ...

https://diging.atlassian.net/browse/CITE-183

Are there any other pull requests that this one depends on?

Anything else the reviewer needs to know?

IsisCB API is not returning anything as of now because of some recent updates made to it.

... describe here ...

@diging-jenkins
Copy link

Can one of the admins verify this patch?

@PradnyaC11 PradnyaC11 requested a review from jdamerow July 31, 2024 23:09
@jdamerow
Copy link
Member

Make it so, Jenkins.

@diging-jenkins
Copy link

Jenkins successfully deployed Citesphere to be reviewed!

@@ -100,6 +100,10 @@
<javers.default.author>Sync Process</javers.default.author>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<isiscb.url>http://isiscb-staging-p3-2.us-west-2.elasticbeanstalk.com/rest/</isiscb.url>
Copy link
Member

Choose a reason for hiding this comment

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

should not be in here.

Copy link
Member

Choose a reason for hiding this comment

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

(and by that I mean the value)

AuthoritySearchResult searchResult = new AuthoritySearchResult();

if (response.getStatusCode() != HttpStatus.OK) {
throw new AuthorityServiceConnectionException(response.getStatusCode().toString());
Copy link
Member

Choose a reason for hiding this comment

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

if there is a body you probably want to include that in the exception

return searchResult;
}

private String getIsiscbSearchString(String firstName, String lastName) {
Copy link
Member

Choose a reason for hiding this comment

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

needs javadoc

}

@Override
public AuthoritySearchResult searchAuthorities(String firstName, String lastName, int page, int pageSize)
Copy link
Member

Choose a reason for hiding this comment

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

needs javadoc

@jdamerow jdamerow closed this Nov 26, 2024
@PradnyaC11 PradnyaC11 reopened this Dec 5, 2024
@diging-jenkins
Copy link

Jenkins successfully deployed Citesphere to be reviewed!

@PradnyaC11 PradnyaC11 requested a review from jdamerow December 5, 2024 18:45
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.

4 participants