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

Maya: Validate node ids in database, query folder ids once #363

Conversation

BigRoy
Copy link
Collaborator

@BigRoy BigRoy commented Apr 3, 2024

Changelog Description

For the Validate Node Ids In Database validator cache the folder ids of the project on the first query so we don't need to query all folder ids in the current project per instance.

Additional info

Also only query the database if the instance actually contains nodes that should have an id to begin with.

Testing notes:

  1. Validation of whether folder id in cbId (part before the :) is a valid folder id in current project should still work.
  2. It should be faster for many instances.

@ynbot ynbot added size/XS host: Maya type: enhancement Improvement of existing functionality or minor addition labels Apr 3, 2024
Copy link
Member

@moonyuet moonyuet left a comment

Choose a reason for hiding this comment

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

tested sucessfully in maya 2023

@MustafaJafar MustafaJafar added the community Issues and PRs coming from the community members label Apr 5, 2024
@kalisp kalisp merged commit 2548401 into ynput:develop Apr 5, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Issues and PRs coming from the community members host: Maya size/XS type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants