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

Fix duplicate ids on apps management page #33526

Merged
merged 1 commit into from
Aug 17, 2022
Merged

Conversation

Pytal
Copy link
Member

@Pytal Pytal commented Aug 13, 2022

Fix duplicate ids on the DOM due to high frequency of collision with the existing logic

Collisions are likely due to both the relatively small bounded range of Math.floor((Math.random() * 100)) and the consecutive invokations of new Date().getSeconds() + new Date().getMilliseconds() returning the same value due to the Date objects being instantiated within the same millisecond

Old format: invertIconApps6245357
New format: invertIconApps-1iyigl45bhf

Signed-off-by: Christopher Ng <chrng8@gmail.com>
@Pytal Pytal added this to the Nextcloud 25 milestone Aug 13, 2022
@Pytal Pytal requested a review from a team August 13, 2022 02:36
@Pytal Pytal self-assigned this Aug 13, 2022
@Pytal Pytal requested review from PVince81, artonge and skjnldsv and removed request for a team August 13, 2022 02:36
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

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

👍

@artonge
Copy link
Contributor

artonge commented Aug 17, 2022

CI failure unrelated

@artonge artonge merged commit 634ee18 into master Aug 17, 2022
@artonge artonge deleted the fix/duplicate-filter-ids branch August 17, 2022 12:20
@skjnldsv skjnldsv mentioned this pull request Aug 18, 2022
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.

3 participants