This MR reverts !221493
In !221493, I introduced a change that would stub Current.organization for all requests specs (Grape specs). But that can mask errors because the actual code does not always have a Current.organization: it needs to be enabled per API.
So we need this disable this for request specs until #558544 is delivered.
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
@rutgerwessels nicely done! backend LGTM! I don't think we need frontend review here right? Looks like it might have been triggered due to the lines removed in spec/frontend/fixtures/organizations.rb.
LMK if you agree and I can set MWPS
Thanks for the cleanup @JonstonChan!
@garyh as per the roulette would you mind doing the maintainer review for Merge Requests backend? Thanks!
Fixes non-auto-correctable Style/NumberedParameters offenses
| Before | After |
|---|---|
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #589138
No problem @dbalexandre! If you have any more today send them my way. I'm on PTO from tomorrow until 23rd so for the others I'll pick these up when I'm back unless someone else takes them on
::Geo::BulkPrimaryVerificationService
Good shout @c_fons! I've added that and your note about the verified_at index to the description
There's enough info for option A to go ahead here now so I'll mark this as refined.
So it's a trivial rake task to implement. For the UI work obviously that means we'd need to update the data management API - not a huge task but not trivial, as it's based on model and not state.
Yeah for this one I'm leaning towards the rake task due to this being a somewhat niche case of user error - misconfiguring the notifications or FF. Longer term I can imagine it would be a nice-to-have in the UI for all data types - i.e. being able to reverify more selectively by verified_at or created_at etc.
Adds a creator field to the packages API response, exposing information about the user who created the package.
Related to: #589248 (comment 3107776882)
Manually published packages lack traceability. Users could not determine who uploaded a package through the API, making it difficult for product managers and auditors to verify that packages were uploaded by qualified individuals.
Expose the existing creator association (via creator_id column) in the packages API response. The creator field returns a UserBasic object containing:
The field is conditionally displayed:
| File | Change |
|---|---|
| lib/api/entities/package.rb | Added creator exposure using UserBasic entity |
| app/models/packages/package.rb | Added preload_creator scope |
| app/finders/packages/package_finder.rb | Added creator preload to avoid N+1 |
| app/finders/packages/packages_finder.rb | Added creator preload to avoid N+1 |
| doc/api/packages.md | Updated API documentation |
| JSON schemas | Added optional creator field |
I've updated the description on this issue to include some proposals for an implementation plan - I think the post FF enablement verification I mentioned above may be the least preferable in hindsight so I've added two additional options to explore -
last_published_at from the ContainerRegistry API so we can find items which had activityBoth the above improve on the "just reverify everything" method we currently recommend in the docs and helps in situations where we know container registry replication was knocked out for X days.
It's a shame the last_published_at isn't queryable in the DB and is only available via an API so this one may not scale that well but it's worth investigating.
cc @mkozono @dbalexandre in case you guys have any extra thoughts on trying to improve the gap we have here
Scott Murray (21385cb3) at 13 Mar 22:58
Scott Murray (f4a2934b) at 13 Mar 22:58
Merge branch 'pb/6054/revert-ldap-sync-fix' into 'master'
... and 1 more commit
Reverts !224135. Per customer feedback, the behavioral change needs to be reimplemented behind a feature flag so self-managed admins can control when to enable it.
master resolution DRI.~"regression:*" label.Scott Murray (5474dbdb) at 13 Mar 18:26
Geo: Add verification summaries calculator service and worker
Scott Murray (3a5fe08b) at 13 Mar 18:25
Updates
Scott Murray (315ab6e9) at 13 Mar 17:41
Geo: Add verification summaries calculator service and worker
Scott Murray (5f25ea65) at 13 Mar 13:38
Register worker & refactor
Scott Murray (3f6748c8) at 12 Mar 16:39
Geo: Add verification summaries backfill and calculator worker
Reverts !224135. Per customer feedback, the behavioral change needs to be reimplemented behind a feature flag so self-managed admins can control when to enable it.
master resolution DRI.~"regression:*" label.Scott Murray (aaa78580) at 11 Mar 17:50
Merge branch '588509-modify-supplychain-publish_provenance_for_buil...
... and 1 more commit