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

Migrate off backbone.js and jQuery #4339

Draft
wants to merge 2 commits into
base: production
Choose a base branch
from
Draft

Conversation

maxpatiiuk
Copy link
Member

Begun work on #4286. Read comments in that issue for architecture details and justification - feedback is welcome

@maxpatiiuk maxpatiiuk changed the base branch from production to xml-editor January 1, 2024 17:08
table: tables[tableName],
id,
};
const resource: SavedResource<TABLE_NAME> = { ...ref, ref, data };
Copy link
Member Author

@maxpatiiuk maxpatiiuk Jan 1, 2024

Choose a reason for hiding this comment

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

ref includes table and id properties
it is useful to have these properties on the resource
but, it may also be useful to be able to quickly get from resource back to resource ref, so the ref property exists
if it turns out to be redundant/needless, we could remove it (in favor of doing { table: resource.table, id: resource.id } - which could be a helper function resourceToRef)

note, resource ref objects are not globally unique - but, their contents (table name + id pair) resolve to one resource only

Base automatically changed from xml-editor to production January 23, 2024 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋Back Log
Development

Successfully merging this pull request may close these issues.

2 participants