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

Preperations for collection updates #2520

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

erri120
Copy link
Member

@erri120 erri120 commented Jan 22, 2025

  • can delete individual revisions
  • can fetch all or newer revision numbers
  • library displays revisions instead of first revision of collections

Part of #391.

@erri120 erri120 requested a review from a team January 22, 2025 11:53
@erri120 erri120 self-assigned this Jan 22, 2025
/// <summary>
/// Deletes a revision and all downloaded entities.
/// </summary>
public async ValueTask DeleteRevision(CollectionRevisionMetadataId revisionId)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a bit confused as to why DeleteRevision and DeleteCollection methods are here in NexusMods.Networking.NexusWebApi, wouldn't it make more sense for this stuff to live somewhere in the DataModel or something?

Copy link
Member Author

Choose a reason for hiding this comment

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

NexusModsLibrary has somewhat become the place for all these operations.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't want to necessarily fix that in this PR, but would you agree that it shouldn't be that way?

Copy link
Member Author

Choose a reason for hiding this comment

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

They could go into CollectionDownloader

Copy link
Contributor

Choose a reason for hiding this comment

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

Want to move in separate PR?

Copy link
Contributor

@Al12rs Al12rs left a comment

Choose a reason for hiding this comment

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

See comment above

@erri120 erri120 requested a review from Al12rs January 23, 2025 09:48
@erri120 erri120 merged commit f42c6d6 into Nexus-Mods:main Jan 23, 2025
11 checks passed
@erri120 erri120 deleted the feat/collection-update-prep branch January 23, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants