-
Notifications
You must be signed in to change notification settings - Fork 356
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
Use properties in the model when retrieving the ansible repo for editing #1230
Use properties in the model when retrieving the ansible repo for editing #1230
Conversation
…ository info for editing
8a1d397
to
5c11830
Compare
@miq-bot add_label bug, fine/yes, euwe/no |
@miq-bot add_label blocker |
@h-kataria or @dclarizio - please review |
@lgalis This is moving us in completely the opposite direction.. In general we should be able to save everything we got from the server. So.. what is this about? What specifically are the fields that appear in the model and should not be there when saving? EDIT: if this is about |
@himdel - no - this is about href and actions that we are saving in the angular model ( and then sending on update )when getting the data from the API |
Wow, that may need some more discussion with the API people, seems like those should never be mixed together with the record data.. but for now, yeah, I still prefer the blacklist approach over a whitelist, unless it's a problem somehow.. |
.. ok, thinking about this some more, this exact same problem happens for every single API endpoint. So.. I guess we should just drop this fix, and fix it on the API side, because otherwise you need to fix every single API user in the UI to delete those 2 attributes. @jameswnl Laura mentioned you have a fix for that on the API side? Is there a PR please? (The issue that |
@himdel - not for the API, for the client - ansible/ansible_tower_client_ruby#93 |
Thanks Laura, you are fast. Yes, it's on the client gem. |
Oh, but then we definitely need an API fix. Or, we could filter it in the common code in |
An API fix is not required nor would it be enough here, There are many fields that we do not need to retrieve. |
@lgalis looks like an easy cc fix
@lgalis and I discussed fetching only the fields needed, similar to what we've seen in the SUI, so hopefully that approach looks good to you. Please re-review as we're hoping to get this in for the blocker BZ. |
b6e620c
to
c35c8fb
Compare
c35c8fb
to
671fe00
Compare
Checked commits lgalis/manageiq-ui-classic@5c11830~...671fe00 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
Thanks, well, I definitely like the |
…n_model_on_edit Use properties in the model when retrieving the ansible repo for editing (cherry picked from commit 5bc21d4) https://bugzilla.redhat.com/show_bug.cgi?id=1448098
Fine backport details:
|
Only copy the properties in the model when retrieving the Ansible repository info for editing
https://bugzilla.redhat.com/show_bug.cgi?id=1445995
/cc @jameswnl
/cc @ZitaNemeckova