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

chore[migrations]: added migration for note data #255

Merged
merged 1 commit into from
May 15, 2024

Conversation

e11sy
Copy link
Contributor

@e11sy e11sy commented May 15, 2024

Problem

We recently added tools field for public.note table, and now tools are inserted on appropriate routes
See #251 for more information
But old notes that were in table before tools field implementation are now having null in tools

Solution

Added migration that checks for note tools inside content.blocks of each note and adds appropriate array into tools field

Copy link

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 86.48% (🎯 80%)
🟰 ±0%
7735 / 8944
🟢 Statements 86.48% (🎯 80%)
🟰 ±0%
7735 / 8944
🔴 Functions 79.86% (🎯 80%)
🟰 ±0%
238 / 298
🟢 Branches 85.74% (🎯 80%)
🟰 ±0%
373 / 435
File CoverageNo changed files found.
Generated in workflow #725

@e11sy e11sy merged commit 6e7fb71 into main May 15, 2024
6 checks passed
@e11sy e11sy deleted the migration-for-note-tools-data branch May 15, 2024 17:30
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