-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update domain model to AVPRIndex package, add WIP AVPRClient support #90
Conversation
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.
Added some reminders for next PR, merging this now because we need ontology tag support in production.
@@ -22,6 +23,8 @@ | |||
<ItemGroup> | |||
<PackageReference Include="Fake.DotNet.Cli" Version="[6.0.0]" /> | |||
<PackageReference Include="FsHttp" Version="[11.0.0]" /> | |||
<PackageReference Include="AVPRClient" Version="[0.0.2]" /> |
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.
Reminder to bump these in the final PR
open System.Net.Http | ||
|
||
type AVPRAPI () = | ||
member private this.BaseUri = Uri("https://avpr.nfdi4plants.org") |
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'd prefer these to be refactored into Globals namespace. I am also quite sure that the default base url is already set to exactly this url when you call the client constructor
@@ -28,6 +28,7 @@ | |||
<PackageReference Include="Expecto" Version="[9.0.4]" /> | |||
<PackageReference Include="Spectre.Console" Version="0.48.0" /> | |||
<PackageReference Include="Spectre.Console.CLI" Version="0.48.0" /> | |||
<PackageReference Include="AVPRIndex" Version="[0.0.2]" /> |
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.
most likely not needed because of transient dependency of ARCValidationPackages lib
Affiliation = "University of Nowhere", | ||
AffiliationLink = "https://nowhere.edu" | ||
let author1 = new Author() | ||
let author2 = new Author() |
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.
You'll have Author.create
with Index package
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 i know, this was from before those functions were included
// email = "jj@d.com", | ||
// Affiliation = "University of Somewhere", | ||
// AffiliationLink = "https://somewhere.edu" | ||
//) | ||
|], | ||
Tags = [| |
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.
same for tags
This PR adds the AVPR Client as an option for package handling to arc validate. It will be added alongside the github API handling, allowing usage of both. It also integrates the Domain section from the AVRPIndex