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

Update domain model to AVPRIndex package, add WIP AVPRClient support #90

Merged
merged 8 commits into from
Mar 5, 2024

Conversation

caroott
Copy link
Member

@caroott caroott commented Mar 1, 2024

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

@caroott caroott marked this pull request as ready for review March 5, 2024 11:25
Copy link
Member

@kMutagene kMutagene left a 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]" />
Copy link
Member

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")
Copy link
Member

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]" />
Copy link
Member

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()
Copy link
Member

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

Copy link
Member Author

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 = [|
Copy link
Member

Choose a reason for hiding this comment

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

same for tags

@kMutagene kMutagene changed the title Add AVPR Client for Package handling Update domain model to AVPRIndex package, add WIP AVPRClient support Mar 5, 2024
@kMutagene kMutagene merged commit 1a1fafa into nfdi4plants:main Mar 5, 2024
2 checks passed
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.

2 participants