Skip to content
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

Implement Generic Objects on services details page #996

Merged
merged 8 commits into from
Oct 19, 2017
Merged

Implement Generic Objects on services details page #996

merged 8 commits into from
Oct 19, 2017

Conversation

chalettu
Copy link
Contributor

@chalettu chalettu commented Sep 20, 2017

@chalettu
Copy link
Contributor Author

@miq-bot add_label enhancement
@miq-bot add_label fine/no

@chalettu
Copy link
Contributor Author

Here is a sample screenshot of the implementation of Generic Objects, @chriskacerguis . Keep in mind this does not currently show the custom actions drop down yet.
demo_go

@miq-bot miq-bot added the wip label Sep 20, 2017
@chriskacerguis
Copy link
Contributor

@bascar FYI - Some great progress from @chalettu

@chriskacerguis
Copy link
Contributor

@chalettu can you please attach the issue to this PR?

@chalettu
Copy link
Contributor Author

#934

@serenamarie125
Copy link

@chalettu looking good. I know this is WIP, but since it has the ux/review tag i assume you want me to provide feedback on what you have

  1. The main accordion showing the generic object type should have parens with the # of generic objects of that type, similar to the Compute resources shown above.
  2. the collapsed Generic Object List view item should show the Generic object type icon before the name of the object
  3. is it possible for you to put 4 key/value pairs for mock data so that we can see the alignment of the information ?

@Loicavenel
Copy link

@bascar do you have some example of Key/Value = Generic Object Properties we may have.. Today we have 3 on one line and Serena is suggesting may be 4.. Do you know what is the limit engineering put in the DB for a a key and a Value.. 255?

@serenamarie125
Copy link

@chalettu @Loicavenel @bascar regarding my #3 comment, I didn't mean we should show 4 pairs on a row, having 3 on a row is sufficient.

I'm suggesting that we have dummy data for 4 key/value pairs that are used and added as a mockup to understand what it looks like. It would be great to have some real examples from Brad so that Chris can show them here though!

@bascar
Copy link

bascar commented Sep 22, 2017

There is no limit to the pairs as it is all a JSON payload made to look like attributes.
Examples of some could be:
arn => arn:aws:rds:eu-west-1:123456789012:db:mysql-db
dept => Finance
cost_center => 4567890
retry_attempts => 123
cleanup_playbook=> https://github.com/somproject/helpers/blob/master/tools/somecleanupscript.yml
......

@chalettu
Copy link
Contributor Author

Currently awaiting ManageIQ/manageiq-api#57 that will allow subcollections on Generic Objects
Also currently awaiting the Generic Object custom actions functionality to be completed. No PR as of yet.

@chriskacerguis
Copy link
Contributor

@chalettu this needs to get bumped in test coverage :)

@chriskacerguis
Copy link
Contributor

@bascar @Loicavenel FYI - This is blocked until ManageIQ/manageiq-api#57 is merged

@bascar
Copy link

bascar commented Sep 29, 2017

I asked nicely for a merge, thanks @chriskacerguis

@chriskacerguis
Copy link
Contributor

@chriskacerguis
Copy link
Contributor

@chalettu could we add some tests for this?

@chalettu
Copy link
Contributor Author

chalettu commented Oct 3, 2017

@chriskacerguis we are also dependent on ManageIQ/manageiq-api#93 for implementing custom actions on Generic Objects

@serenamarie125
Copy link

Is there any way we can see what this will look like with more pairs? Brad provided some. It would be nice to see what it'll look like. I'm concerned about alignment, and would rather see that now if possible than later.

@chalettu
Copy link
Contributor Author

chalettu commented Oct 5, 2017

updated go preview
@serenamarie125 here is the latest Screenshot of GO that implements custom actions. Please let me know if we have any revisions we would like to make.

@chalettu
Copy link
Contributor Author

chalettu commented Oct 6, 2017

We are going to add generic object icon support after ManageIQ/manageiq-api#114 gets merged in. This will allow us to show custom pictures

@serenamarie125
Copy link

serenamarie125 commented Oct 16, 2017

@chalettu the reason I asked about seeing what this looks like with more pairs of data is because my mocks (shown here) have the label left aligned rather than right aligned as you have implemented. This may be perfectly acceptable, but I wanted to see what it looks like.

@chalettu
Copy link
Contributor Author

generic_objects_final

@serenamarie125 here is a updated screenshot that includes Generic object picture support and also for multiple generic object attributes. Please let me know if you approve of the UI.

@chalettu chalettu changed the title [WIP] Implement Generic Objects on services details page Implement Generic Objects on services details page Oct 17, 2017
@chalettu
Copy link
Contributor Author

@miq-bot remove_label wip

@miq-bot miq-bot removed the wip label Oct 17, 2017
@chriskacerguis
Copy link
Contributor

@serenamarie125 I spoke to @chalettu this is good for your review :)

/cc @bascar @Loicavenel

Copy link

@serenamarie125 serenamarie125 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @chalettu nice work! Once this is merged, I may take another pass at a high fidelity review, but this looks great as far as functionality is concerned

@serenamarie125
Copy link

@miq-bot add_labels ux/approved

@serenamarie125
Copy link

@miq-bot remove_labels ux/review

chriskacerguis
chriskacerguis previously approved these changes Oct 18, 2017
@chriskacerguis chriskacerguis added this to the Sprint 72 Ending Oct 30, 2017 milestone Oct 18, 2017
@miq-bot
Copy link
Member

miq-bot commented Oct 19, 2017

Checked commits https://github.com/chalettu/manageiq-ui-service/compare/b6547b599492e33b52b2aa18c28d8dabb951a864~...eff6bb53659fe29fa7b750cd2d64063bf65bd9c1 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks fine. 🍰

chriskacerguis
chriskacerguis previously approved these changes Oct 19, 2017
Copy link
Member

@AllenBW AllenBW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the one thing jumps out, overall loooooks 🌮 💃 !!!

ng-click="$ctrl.customScope.toggleExpand(item)">
<i class="fa fa-angle-right"
ng-class="{'fa-angle-down': item.isExpanded}"></i>
<img src="{{item.picture.image_href}}" class="generic-object-icon" ng-if="item.picture">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prefer use of ng-src here, while this probably will work most of the time, this should be done for the one time the browser will still try to load the {{path}} string it finds in <img src="{{path}}">

Copy link
Member

@AllenBW AllenBW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌮 💃

@chriskacerguis chriskacerguis merged commit 58f0c0a into ManageIQ:master Oct 19, 2017
@chalettu chalettu deleted the generic-objects branch January 10, 2018 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants