Skip to content

Mirrored package identification - #219

Merged
Regenhardt merged 10 commits into
bagetter:mainfrom
jacksga:feat/mirrored-package-identification
Apr 8, 2026
Merged

Regenhardt merged 10 commits into
bagetter:mainfrom
jacksga:feat/mirrored-package-identification

Conversation

@jacksga

@jacksga jacksga commented Mar 4, 2025

Copy link
Copy Markdown

Summary of the changes

  • Lets BaGetter store wether a package was mirrored and if so, from where
  • Can be used as base for different cleanup routines

Addresses #187

@jacksga
jacksga force-pushed the feat/mirrored-package-identification branch from 3371048 to 5630c41 Compare March 26, 2025 16:13
@jacksga
jacksga marked this pull request as draft March 26, 2025 16:15
@jacksga
jacksga marked this pull request as ready for review March 26, 2025 16:15
@jacksga
jacksga marked this pull request as draft March 26, 2025 16:15
@jacksga
jacksga marked this pull request as ready for review March 26, 2025 16:15
@jacksga

jacksga commented Mar 26, 2025

Copy link
Copy Markdown
Author

Hey @Regenhardt and @FroggieFrog,
is there a chance of getting your thoughts on this and if this is something you'd support in this way as a foundation for easier cleanup routines etc in the future?
Thanks in advance

@jacksga

jacksga commented Jun 18, 2025

Copy link
Copy Markdown
Author

Hey, could you please provide me with some form of reaction or feedback regarding this?
@Regenhardt

@Regenhardt

Copy link
Copy Markdown

Hi yes sorry, I definitely like this, just want to combine it with something else that also needs to modify the DB schema.

@seriouz

seriouz commented Oct 6, 2025

Copy link
Copy Markdown

@Regenhardt Do you still have further plans on this?

@hoerup

hoerup commented Oct 28, 2025

Copy link
Copy Markdown

@Regenhardt could you please take another look at this one ?

@jacksga

jacksga commented Dec 4, 2025

Copy link
Copy Markdown
Author

Hey @Regenhardt is there any chance we could get this wrapped up and done this year as a christmas present for everyone trying to identify mirrored packages for cleanup?

@Regenhardt Regenhardt left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Would actually prefer sometihng like UpstreamSource instead of MirroredFrom, not sure why though so I'm open for arguments here.

Comment thread src/BaGetter.Core/Upstream/Clients/DisabledUpstreamClient.cs Outdated
Comment thread src/BaGetter.Core/Upstream/Clients/V3UpstreamClient.cs Outdated
@Regenhardt

Copy link
Copy Markdown

Maybe we can indeed get this wrappped up for christmas :)

Also rebase (or merge main) please.

@jacksga

jacksga commented Dec 10, 2025

Copy link
Copy Markdown
Author

Would actually prefer sometihng like UpstreamSource instead of MirroredFrom, not sure why though so I'm open for arguments here.

For me upstream in a general software development perspective is more missleading than mirror, therefore I opted for MirroredFrom. Would also be up for a mix (MirrorSource) but in perspective of getting it done before christmas I'd choose whatever your last word is :D

When you decided on the name for the property I will rebase, change the name, fix the domain and usings and create new migrations.

@Regenhardt

Copy link
Copy Markdown

Happy new year!
You won't guess what I got for christmas: A fried boot drive, yay!

Anyway, how about SourceUri? I want to avoid spreading the "mirror" description any further as BaGetter technically does not mirror a source, which has already lead to confusion before, as packages are cached on pull but not actively mirrored. I do understand upstream possibly being confused for an original code repository though.

@jacksga

jacksga commented Jan 15, 2026

Copy link
Copy Markdown
Author

Happy new year to you too, I'm sorry to hear that, hope you haven't lost anything important except from time and nerves.

When reading your comment I figured well yeah, they are cached, so why not CachedFrom, CacheUri or CacheSource, those seem the most fitting. Would opt to CachedFrom as well as I'd rename the parameters etc from mirror to cache.

If you don't like the idea I will just use SourceUri.

Being back from vacation I do now have the time to finish everything after we sorted the naming thing.

@Regenhardt

Copy link
Copy Markdown

Welcome back, hope you had a nice vacation. Thanks, yes it was mostly the time, I fortunately had mostly just windows itself on there.

I think CachedFrom is great, it conveys intent and has less other meanings it could be confused with, let's go with that. Don't rename the existing object from the appsettings though, to avoid the breaking change.

@jacksga
jacksga force-pushed the feat/mirrored-package-identification branch from d354537 to 5e2b96b Compare January 20, 2026 13:10
@jacksga
jacksga requested a review from Regenhardt January 20, 2026 14:46

@Regenhardt Regenhardt left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Ok this should be the last time I send this back, thanks a lot for staying with me on this.

Comment thread src/BaGetter.Core/Indexing/IPackageIndexingService.cs
Comment thread src/BaGetter.Core/Upstream/Clients/DisabledUpstreamClient.cs Outdated
@hoerup

hoerup commented Feb 20, 2026

Copy link
Copy Markdown

@jacksga great work and I appreciate your patience on this

Could you implement @Regenhardt's suggestions so this finally can be merged ?

@jacksga
jacksga force-pushed the feat/mirrored-package-identification branch from 5e2b96b to b85a525 Compare February 24, 2026 16:54
@jacksga
jacksga requested a review from Regenhardt February 24, 2026 16:55
@Regenhardt
Regenhardt merged commit 02b6706 into bagetter:main Apr 8, 2026
@Regenhardt

Copy link
Copy Markdown

Thanks a lot for the contribution, I'm still testing and will not immediately make a new release to check if we can include more db changes in a single release.

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