Allow anyone to preview unblocked landings
Categories
(Conduit :: Lando, defect, P3)
Tracking
(Not tracked)
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)
Updated•8 years ago
|
Comment 1•8 years ago
|
||
| Reporter | ||
Comment 2•8 years ago
|
||
| Reporter | ||
Comment 3•8 years ago
|
||
Comment 4•7 years ago
|
||
Updated•7 years ago
|
| Assignee | ||
Comment 7•7 years ago
|
||
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.
Updated•7 years ago
|
Updated•5 years ago
|
Description
•