Skip to content

Update frontmatter and some sync scripts#12

Merged
mikepsinn merged 8 commits intodecentralized-fda:v6from
mikepsinn:v6
Feb 12, 2025
Merged

Update frontmatter and some sync scripts#12
mikepsinn merged 8 commits intodecentralized-fda:v6from
mikepsinn:v6

Conversation

@mikepsinn
Copy link
Member

No description provided.

mikepsinn and others added 8 commits February 11, 2025 10:31
- Added normalization for date and dateCreated fields in frontmatter validation
- Converted Date objects to ISO strings before schema validation
- Improved script robustness for handling different date input formats
- Ensured consistent date representation in markdown files
- Implemented comprehensive Notion synchronization script
- Added @notionhq/client dependency
- Created script to sync markdown files with Notion database
- Supports bidirectional sync of metadata and content
- Handles file creation, updates, and conflict resolution
- Uses Git to track file modification timestamps
- Added comprehensive setup instructions for Notion API integration
- Implemented fallback mechanism to generate default metadata for markdown files without frontmatter
- Removed unused test files related to frontmatter processing
- Simplified import statements in test scripts
- Added descriptive metadata to various markdown files across different directories
- Included emoji, tags, publication details, and clear descriptions
- Enhanced document structure for better organization and discoverability
- Prepared documents for publication with consistent frontmatter format
- Integrated TypeScript testing with ts-jest
- Added @types/jest for type definitions
- Created comprehensive test suite for notion-sync script
- Implemented file handling and metadata extraction tests
- Exported functions from notion-sync for testability
- Updated package.json with testing dependencies
…oved sync workflow

- Added `ensureDatabaseProperties()` function to validate and create required Notion database properties
- Defined `REQUIRED_PROPERTIES` configuration for consistent database schema
- Updated script to run property validation before markdown synchronization
- Expanded test suite to cover database property validation and bidirectional sync
- Improved error handling and logging for database property management
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hi @mikepsinn! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@github-actions
Copy link

github-actions bot commented Feb 12, 2025

Current Voting Result Voting
Vote on this comment with 👍 or 👎.

Vote Summary:
0 👍
0 👎

Acceptance Criteria:

  • 51% of weighted votes needs to be to approve
  • 1 minimum # of unique voters required
  • at least 720 minutes of voting

@mikepsinn mikepsinn merged commit c3d8e41 into decentralized-fda:v6 Feb 12, 2025
1 check failed
mikepsinn added a commit to mikepsinn/dfda-wiki that referenced this pull request Jun 24, 2025
Update frontmatter and some sync scripts
mikepsinn added a commit to mikepsinn/dfda-wiki that referenced this pull request Jun 24, 2025
Update frontmatter and some sync scripts
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.

1 participant