-
Notifications
You must be signed in to change notification settings - Fork 19
introduce closure to mutate resource or file id for dom use only #1766
Conversation
1315019
to
3d31231
Compare
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 added an offending ID in the examples (e.g. line 641 id: "forest:19",
) to test this, and it visibly breaks the component (by always rendering the dropdown menu) even if the regex itself does the job - string "aa:a/a-a" gets turned into "aaaaa"
Would be great to have this covered in test data somehow, too 😇 |
nice thanks, yes this should fail in line 641, the example overwrites the the case is covered here for an overwrite and here for the default behavior. Thanks for your deep dive ❤️ |
Okay now I've read the actual implementation 🤦🏽 if CERN confirms this works with their EOS IDs (which it should) I'm happy to approve, merge & release! |
Not sure how smart it is to overwrite the sanitization function in an example though, creates knots in the heads of people like me haha |
e062c6c
to
3d31231
Compare
@fschade just tested and it fixes the issue. (the |
767b51e
to
858d2cd
Compare
Kudos, SonarCloud Quality Gate passed! |
@kulmann, @pascalwengerter please have a look, i also touched the naming if |
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.
Changes LGTM, thanks for the additional cleanup!
@@ -13,8 +13,8 @@ | |||
@highlight="fileClicked" | |||
@rowMounted="rowMounted" | |||
@contextmenuClicked="showContextMenu" | |||
@fileDropped="fileDropped" | |||
@fileDragged="fileDragged" | |||
@itemDropped="fileDropped" |
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 was an unnecessary breaking change in retrospect (it's the OcFilesTable so file as a prefix is fine, slipped through my code review), let's discuss if we want to rollback & re-release or ship a bugfix release tomorrow
Description
in some cases the resource or item id is not a valid dom selector, to be able to mutate the id this introduces a closure to do so.
Related Issue
Motivation and Context
valid dom selectors
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: