Open Bug 1508436 Opened 8 years ago Updated 2 years ago

Allow anyone to preview unblocked landings

Categories

(Conduit :: Lando, defect, P3)

defect

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: beth, Assigned: nikkis, Mentored)

References

Details

(Keywords: conduit-triaged, good-first-bug)

User Story

The landing preview modal is currently restricted to logged in users. There is no technical reason for this to be the case, as the all the needed information is already in the page. We should allow anonymous users to view the preview for series that aren't blocked.

Additionally if a series is unblocked but the user has something blocking them from landing (such as not having the proper `scm_level_*` we only show the blocker message in the preview. In this case we should still show the full preview but disable the landing button and display the error.

Attachments

(2 files, 1 external file)

Revision titles are truncated to 60 characters and you cannot view the entire title without inspecting the page. STR: 1. Submit a patch to Phabricator with a commit message > 60 characters long. 2. View the created differential in Lando. It would be nice if hovering over the title showed a tooltip of the entire title.
Keywords: conduit-triaged
Whiteboard: [lando-backlog]
(In reply to Barret Rennie [:brennie] from comment #0) > Revision titles are truncated to 60 characters and you cannot view the > entire title without inspecting the page. The full commit message that will land can be seen in the Landing Preview modal. The initial table is really only meant to show enough basic information to differentiate the revisions and let you know the important status (you can always click the revision link to get more detailed information from Phabricator itself). That being said... > It would be nice if hovering over the title showed a tooltip of the entire > title. I could see some sort of tooltip for long titles being a thing, probably not a very high priority though.
(In reply to Steven MacLeod [:smacleod] from comment #1) > (In reply to Barret Rennie [:brennie] from comment #0) > > Revision titles are truncated to 60 characters and you cannot view the > > entire title without inspecting the page. > > The full commit message that will land can be seen in the Landing Preview > modal. That is only the case if you have sufficient permissions to land the patch. As someone with L1 commit access, I cannot preview how my patches will land in mozilla-central because that requires L3 commit access. Perhaps the modal should be updated to show the preview regardless of whether or not the user can land it and also show the warning when they cannot land it. That would solve my use case. > The initial table is really only meant to show enough basic information > to differentiate the revisions and let you know the important status (you can > always click the revision link to get more detailed information from > Phabricator > itself). > > That being said... > > > It would be nice if hovering over the title showed a tooltip of the entire > > title. > I could see some sort of tooltip for long titles being a thing, probably not > a > very high priority though.
(In reply to Barret Rennie [:brennie] from comment #2) > someone with L1 commit access, I cannot preview how my patches will land in > mozilla-central because that requires L3 commit access. > > Perhaps the modal should be updated to show the preview regardless of whether > or not the user can land it and also show the warning when they cannot land > it. > That would solve my use case. Yup, definitely should be. Probably the need for login should be removed too.
Keywords: conduit-backlog
Whiteboard: [lando-backlog]
Assignee: nobody → nikkisharpley
Mentor: smacleod
Status: NEW → ASSIGNED
User Story: (updated)
Summary: Revision titles are truncated → Allow anyone to preview unblocked landings

Currently, the landing-preview modal is restricted to logged in users only.
Additionally, users should be able to view the preview regardless of blockers.
This fix allows all users to preview landings, whilst still displaying
information about any blocker and preventing landing unless they are logged in,
authorised and with no blockers.

To attain this, some HTML code was deleted and shifted. Namely, in
landing-preview.html, the deletion of conditionals that hide the
landing-preview modal if there is no dryrun or if blockers exist. And, in
stack.html, the deletion of the conditional that prevented clicking on Preview
Landing if the user is not authenticated or there is no dryrun. If blockers do
exist, this is now displayed above the series in the landing preview.

As user authentication was removed to allow the landing preview without log in,
a conditional checking user authentication was added to alternate the actual
land button.

The series and target_repo variables were moved to ensure that the commit messages
(series) were displayed in the correct order and that the "Landing to:" had a path
(target_repo) listed.

Keywords: conduit-story
Priority: -- → P2
Priority: P2 → P3
Mentor: smacleod → zeid
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: