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

Device definitions sync tableland #141

Merged
merged 5 commits into from
May 24, 2024
Merged

Conversation

LorranSutter
Copy link
Member

No description provided.

@LorranSutter LorranSutter changed the base branch from main to dev May 16, 2024 14:18
@JamesReate JamesReate marked this pull request as ready for review May 17, 2024 16:17
// delete dd
let deleteDeviceDefinitionByManufacturers = [];
deviceDefinitionByManufacturers.forEach(element => {
const dds = tablelandDeviceDefinitionByManufacturers.filter((c) => c.ksuid === element.device_definition_id);
Copy link
Member

Choose a reason for hiding this comment

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

hmm actually I think this should be the other way around:

  • iterate over tableland defs
  • for each lookup in deviceDefinitions
  • if not found, delete from tableland.

Copy link
Member

Choose a reason for hiding this comment

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

I mean I guess this would work, and is accounting for differences in the id to delete. But there are certain scenarios where i think we wouldn't be deleting

Copy link
Member Author

@LorranSutter LorranSutter left a comment

Choose a reason for hiding this comment

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

After James' comments I think we will be good to go

@JamesReate JamesReate merged commit e32d6c5 into dev May 24, 2024
1 of 2 checks passed
@JamesReate JamesReate deleted the device-definitions-sync-tableland branch May 24, 2024 00:31
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.

4 participants