-
Notifications
You must be signed in to change notification settings - Fork 899
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
[WIP] hide ancestry from the api #20936
base: master
Are you sure you want to change the base?
Conversation
Ancestry is an encoded field with the parent id. This is only for internal consumption. If someone asks why this was removed, we can provide alternative options for discovering the ancestry. I had a customer say that this field was broken because it didn't contain something - but they weren't using the field correctly. That is why I went on this hidden attribute journey in the first place. I wanted to limit our exposure to customers using internal fields incorrectly.
e8719ab
to
8bc1b25
Compare
I'm not sure about this one...it's a straight column (so it's not potentially expensive like a virtual column), and without exposing this, a user can't know the hierarchy. That is, I could see a caller using this to make a more efficient query afterwards. |
I propose we expose the parent_id or an array of ancestor_ids, but not the actual ancestry column with slashes does that make more sense? |
@chessbyte have not been able to exploit (aka change membership from one user to another owner) But I have been able to directly modify data that I really should not have been able to do. My main business case for this is I wanted to encode the ancestry as a different data type, but this exposure forces us to stick with a string encoded list of ids - which, I really want to modify in ancestry itself to something like an array of ids. |
I don't like closing PRs just because they are not getting attention. When the time is right, let's discuss the details of this with @Fryguy and others. |
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation. |
This pull request has been automatically closed because it has not been updated for at least 3 months. Feel free to reopen this pull request if these changes are still valid. Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation. |
WIP: need a good way to pass the ancestry to and from the ui. |
Checked commit kbrock@8bc1b25 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint |
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation. |
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the |
2 similar comments
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the |
This pull request has been automatically marked as stale because it has not been updated for at least 3 months. If these changes are still valid, please remove the |
Goal
Hide the ancestry column from the api
Why
Solution
Do not advertise this field in the API and miq expression builder.
parent_id
) and are not part of an internal implementation.