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

Custom link names #82

Merged
merged 9 commits into from
Jan 12, 2024
Merged

Custom link names #82

merged 9 commits into from
Jan 12, 2024

Conversation

martastain
Copy link
Member

link table is changed to contain a custom name field.

The name is nullable and it may be used to use an integration-specific identifier. Links of the same type no longer need to be unique.

On the database level, the following has changed:

  • Renamed link_name to link_type
  • Added name column
  • Moving author from data to its own column
  • Remove link_unique_IDX

API-wise, this PR should be 100% backward compatible, but link field in [POST] /api/{project_name}/links is now deprecated. Instead, please use link_type (for now, both may be used).

Graphql and rest both expose new optional name field.

Testing

This PR is now in ayon:experimental image. In order to migrate existing projects to the new schema, the container must start (reloading only won't trigger the migration script).

If you restore an older project, restart the container afterward, so it is converted as well - projects with older schemas should work, only links will be broken.

link types weren't changed in any way.

api/links/links.py Outdated Show resolved Hide resolved
@martastain martastain merged commit 274ff19 into develop Jan 12, 2024
@martastain martastain deleted the enhancement/custom_link_names branch March 7, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants