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
Folder: Replace folderId with folderUid #58393
Conversation
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/41310 |
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.
Looks great from alerting side! 🎉
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/41968 |
Would it be possible for this to get merged soon? :) |
Hi @kaydelaney, I would like to ask if you can have a review on the FolderPicker changes please :) If all good I will merge it |
This pull request was removed from the 9.3.0-beta1 milestone because 9.3.0-beta1 is currently being released. |
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/42137 |
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/42189 |
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.
Nice one! 👏
if ( | ||
(fullDash.meta.folderUid === undefined && fullDash.meta.folderId === null && toFolder.uid === '') || | ||
fullDash.meta.folderUid === toFolder.uid | ||
) { |
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.
Just out of curiosity, which scenarios does folderUid === undefined && folderId === null
? is it some sort of legacy thing?
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.
Good eyes @JoaoSilvaGrafana it suppose to be folderUid
. About the scenario, It seems part of a legacy thing, I'm not entirely sure which scenario it catches as it always go to the second condition(fullDash.meta.folderUid === toFolder.uid
).
Probably there might be a case where folderUid
is undefined
or null
and if this happen the same as the destination folder is ''
which is general then we assume that they are in the same general folder location hence sending { alreadyInFolder: true };
Drone build failed: https://drone.grafana.net/grafana/grafana-enterprise/42265 |
What is this feature?
Replace folderId with folderUid in the following areas:
Why do we need this feature?
folderId
it would be easier to start on cleaner state when we start the actual feature as they will be mostly working withfolderUid
sBlocked by issue #57988. This is needed to avoid supportingfolderId
andfolderUid
inImportDashboardForm
component.Which issue(s) does this PR fix?:
Fixes #57874
Special notes for your reviewer:
Import dashboard isn't working at the moment withfolderUid
it will be solve when api/dashboards/import API isn't working with folderUid #57988 is addressed