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

Package.isModerated removes scores and handles non-visibility with new Exception #7556

Merged
merged 1 commit into from
Mar 13, 2024

Conversation

isoos
Copy link
Collaborator

@isoos isoos commented Mar 13, 2024

@isoos isoos requested review from jonasfj and sigurdm March 13, 2024 12:34
Comment on lines +369 to +377
// also delete earlier runtime versions
for (final rv
in acceptedRuntimeVersions.where((rv) => rv != runtimeVersion)) {
final key = PackageState.createKey(_db, rv, packageName);
final s = await tx.lookupOrNull(key);
if (s != null) {
tx.delete(s.key);
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Is this strictly necessary. Won't older package versions catchup through the periodic background job?

Also we won't really be serving anything from such older runtimeVersions, right?
And even if we do, this won't really showup anywhere, we'll just get an analysis tasks that fails because it can't fetch the package.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also we won't really be serving anything from such older runtimeVersions, right?

We may do as a fallback runtime version. It is probably not that much of an issue though, I just wanted to make sure we don't leave stale entries anywhere.

Is this strictly necessary. Won't older package versions catchup through the periodic background job?

Not entirely sure that periodic job will clear this within a day. Maybe in a month?

@isoos isoos merged commit d024ee2 into dart-lang:master Mar 13, 2024
31 checks passed
@isoos isoos deleted the moderated-task branch March 13, 2024 15:02
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