-
Notifications
You must be signed in to change notification settings - Fork 289
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
Fixes #13695,11612 - Shows ostree branches for a repo #5858
Conversation
<span translate>Manage Branches</span> | ||
</button> | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra empty line here
d465c12
to
5ff7d31
Compare
@ehelms I have screenshots for the UI this PR adds https://partha.fedorapeople.org/ostree-prs/PR-5858/ |
To hide the '0 selected' just add:
|
Thanks!. added |
@@ -0,0 +1,86 @@ | |||
describe('Controller: PackagesController', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is all about packages? I also don't see an OstreeController?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops !
@parthaa, in the screen shots, we have "OSTree Units". We discussed it in irc a little bit, but would we want to call it "OSTree Branch Versions", since that is what it equates to. (Note: it may be more verbose, but might resonate with users when correlating it to the 'Manage Branches'. Thoughts or other opinions? |
@parthaa, On the "Click on the Manage Branches" screenshot, should the user be able to select and remove branches? If not, should "Manage Branches" be changed to "View Branches" or something different. Or, is the intent to add the ability to manage them via a separate PR? |
@@ -198,6 +198,8 @@ def resource_name(_i18n = true) | |||
_("Docker Manifest") | |||
when "Katello::DockerTag" | |||
_("Docker Tag") | |||
when "Katello::OstreeBranch" | |||
_("Ostree Branch") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Ostree Branch/OSTree Branch/ ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeh its view only.
That's a good question. A branch can have multiple versions. So the number before the units implies number of versions or branch versions as you pointed out.
They all sound acceptable . I prefer 1/2/5 ... |
update_attributes(:name => json[:branch], | ||
:version => json[:metadata][:version], | ||
:commit => json[:commit], | ||
:version_date => json["_created"].to_datetime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume uuid is not needed here, correct?
I guess i would equate this to how we speak of "packages" even though we deal with multiple versions of the same packages. We could assume the user will imply the same sort of relationship and settle on "Branches" everywhere would would via analogy equate to "Packages" and expect users to know Branches have versions (similar to other content). |
@@ -0,0 +1,60 @@ | |||
<span page-title ng-model="repository">{{ 'Manage Ostree Branchesfor Repository:' | translate }} {{ repository.name }}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Branchesfor/Branches for/
s/Ostree/OSTree/ ?
+1 to just 'branches' for me |
@parthaa, I have reviewed and added some minor comments. ACK from me once updated and jenkins is happy. |
This commit updates the base model for ostree and its repositories. It also includes UI changes to display the branches available for an ostree repo
@bbuckingham Renamed to View Branches |
@parthaa, Thanks! |
Fixes #13695,11612 - Shows ostree branches for a repo
This commit updates the base model for ostree and its repositories.
It also includes UI changes to display the branches available for an
ostree repo