When solving snap name disputes by means of a "snap ownership transfer", the dispute has to be resolved and removed for the disputing user to be able to get the name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snap Store Server |
Fix Released
|
Undecided
|
Hasan Ammar |
Bug Description
When a user X disputes a snap name "foo", we can resolve that dispute in different ways:
1- we may revoke the dispute request because the current owner of "foo" is the right one, or
2- we may revoke the existing snap "foo" and grant just the name to user X, or
3- current publisher and disputing user X may agree a snap ownership transfer, with all revisions.
For 3, we need to:
A- Resolve the snap name dispute from user X by "revoking it" (there is no other option right now).
B- Remove the PackageDeclaration bound to that revoked snap name dispute (completely, from the db via the admin).
C- Do the snap ownership transfer.
Step B is required because the same user can't have more than one PackageDeclaration for the same requested_
Step B has the bad consequence that we loose all audibility on the process of how the dispute was resolved, comments and conclusions.
This bug has a goal to describe the problem, and to have someone doing some research and feature spec to improve the situation.
A few options are:
* Have a new PackageDeclarat
* Have a new state for PackageDeclaration ('Closed') allowing a user to have multiple PackageDeclaration instances for the same requested_snap_name if the status is Closed (I do not like this option since it feels more complex and would have more consequences across sca codebase).
tags: | added: snap-registration |
Changed in snapstore: | |
assignee: | nobody → Hasan Ammar (hasanammar) |
Changed in snapstore: | |
status: | New → Fix Released |
For option 1, I'm not sure how easy it would be to copy over the comments; a separate model for PackageDeclarat ionClosedCommen ts?
Another potential option could be to add some automated comments + transfer the comment history to the original PackageDeclaration during ownership transfer. Something like:
1. Revoke the dispute.
2. Copy over comments: decl-with- dispute updated to point to original- package- decl ionHistory would have this info).
* AUTOMATED COMMENT: Dispute started by new-owner
* comment 1..n on package-
* AUTOMATED COMMENT: Dispute resolved; original owner = "..", new owner = ".." (this is probably not needed because PackageDeclarat
3. Delete disputed PackageDeclaration.
4. Do the transfer.
The 4-step-transfer could be done in an additional "confirm- friendly- transfer" step in ownership transfer from the admin. I may have missed some details that might prevent this from working, so curious to hear some thoughts.