75 Commits

Author SHA1 Message Date
86d4c70da9 Merge pull request 'fix-tests-sotiris-9-7' (#6) from fix-tests-sotiris-9-7 into main
Some checks failed
Publish Alpha Package to npm / publish (push) Failing after 53s
Reviewed-on: #6
2025-07-12 11:29:22 +00:00
b3b5e5e464 feat: Update documentation sidebars to include new sections on database management, advanced topics, and migration system 2025-07-12 14:28:44 +03:00
f3d5096d1c feat: Add migration guide and documentation test runner
- Introduced a comprehensive migration guide for DebrosFramework 0.5.x, detailing breaking changes, upgrade procedures, and best practices.
- Implemented a documentation test runner to validate code examples in documentation files, ensuring accuracy and consistency with the current implementation.
- Enhanced BlogAPIServer to handle potential null values in API responses, improving robustness and error handling.
2025-07-12 14:22:21 +03:00
dfc39bd975 feat: Add appName configuration to DebrosFramework and enhance DatabaseManager with app-specific handling 2025-07-11 06:32:43 +03:00
6e1cc2cbf0 feat: Improve database query handling and slug generation in BlogAPIServer 2025-07-10 05:28:45 +03:00
0ebdb7cbbf feat: Enhance model registration and validation with default configurations and improved error handling 2025-07-09 19:43:39 +03:00
91f63bc054 Merge pull request 'Add comprehensive documentation for decorators, migration, and relationships in DebrosFramework' (#5) from fix-tests-sotiris-9-7 into main
Some checks failed
Publish Alpha Package to npm / publish (push) Failing after 51s
Reviewed-on: #5
2025-07-09 13:43:59 +00:00
f183015f47 Add comprehensive documentation for decorators, migration, and relationships in DebrosFramework
- Introduced hook decorators for lifecycle methods in models.
- Documented @Model decorator for model configuration.
- Added relationship decorators for defining model relationships.
- Created MigrationBuilder and MigrationManager documentation for schema migrations.
- Added QueryExecutor and RelationshipManager documentation for query execution and relationship handling.
- Included examples for complex queries and migration scenarios.
- Developed a social platform example showcasing model relationships and application structure.
- Enhanced contributing guidelines with community, documentation, and release processes.
- Established testing guidelines for unit and integration tests.
2025-07-09 16:43:01 +03:00
98a58c1dcb Merge pull request 'doc-changes-5-7' (#4) from doc-changes-5-7 into main
All checks were successful
Publish Alpha Package to npm / publish (push) Successful in 56s
Reviewed-on: #4
2025-07-09 13:01:29 +00:00
9d8a8b1c2c feat: Add static count method to BaseModel and enhance OrbitDBService with debugging logs 2025-07-09 16:00:00 +03:00
9877ddf5ec docs: Add development guidelines, project overview, and technical reference documentation 2025-07-06 06:56:39 +03:00
97d9191a45 feat: Add Jest integration configuration and update test commands in package.json 2025-07-06 06:38:01 +03:00
c7babf9aea Add QueryBuilder documentation and video tutorials
- Created a new documentation file for the QueryBuilder class, detailing its methods and usage examples.
- Added a comprehensive video tutorials index, covering various aspects of the Debros Network framework.
- Updated the sidebar configuration to include the new video tutorials section and reorganized the API documentation categories.
2025-07-05 06:58:55 +03:00
8cd23b433c Implement code changes to enhance functionality and improve performance 2025-07-05 06:41:24 +03:00
155bda6627 feat: Revamp homepage and features section with new design and content 2025-07-05 06:40:29 +03:00
5552c638ff fix: Bump version to 0.5.1-beta in package.json 2025-07-05 06:18:17 +03:00
869049c679 feat: Add contributing guidelines and development setup documentation
- Created a comprehensive Code Guidelines document outlining coding standards and best practices for DebrosFramework.
- Added a Development Setup guide to assist contributors in setting up their environment.
- Introduced an Overview document to welcome new contributors and explain the project's status and contribution areas.
- Updated the intro.md to reflect the current development status of DebrosFramework.
- Modified sidebars.ts to include new contributing documentation in the navigation.
- Enhanced package.json description for clarity and added relevant keywords.
- Updated version information in DebrosFramework.ts and index.ts to reflect the current beta version.
2025-07-05 06:18:06 +03:00
2903d45230 Merge pull request 'penguin-beta-version-1.5' (#3) from sotiris-beta-version-1.5 into main
All checks were successful
Publish Alpha Package to npm / publish (push) Successful in 57s
Reviewed-on: #3
2025-07-05 02:53:29 +00:00
f4be989616 feat(tests): update versioning and add blog integration test command in Docker setup 2025-07-05 05:52:44 +03:00
619dfe1ddf refactor(tests): remove DebrosFramework integration tests and update blog scenario tests
- Deleted the DebrosFramework integration test file to streamline the test suite.
- Updated blog API server to import reflect-metadata for decorator support.
- Changed Docker Compose command for blog integration tests to run real tests.
- Modified TypeScript configuration for Docker to target ES2022 and enable synthetic default imports.
- Removed obsolete Jest configuration and setup files for blog scenario tests.
- Cleaned up global test setup by removing console mocks and custom matchers.
2025-07-03 07:00:54 +03:00
8c8a19ab5f feat(tests): Add integration tests for blog scenario
- Implement basic operations tests for user, category, post, and comment management.
- Create cross-node operations tests to verify distributed content creation and concurrent operations.
- Introduce Jest configuration and setup files for testing environment.
- Enhance BlogTestHelper with methods for user, category, post, and comment operations.
- Ensure data consistency and network metrics verification across nodes.
2025-07-03 06:15:27 +03:00
e6636c8850 fix: Update OrbitDBService type mapping and adjust BlogAPIServer initialization to use correct service references 2025-07-03 05:52:55 +03:00
1481bd8594 fix: Enhance initialization checks in FrameworkOrbitDBService and FrameworkIPFSService; add tsconfig.docker.json for integration tests 2025-07-02 07:45:55 +03:00
b0a68b19c9 fix: Update Dockerfile and docker-compose to enhance dependency installation and adjust IPFS port mappings 2025-07-02 07:39:03 +03:00
e82b95878e refactor: Improve decorator handling and error management in Field and hooks; update Blog API Dockerfile for better dependency management 2025-07-02 07:24:07 +03:00
1e14827acd fix: Update Dockerfile to install full dependencies and use tsx for starting the blog API server 2025-07-02 05:48:46 +03:00
59b0fbcc73 fix: Override entrypoint in Dockerfile to ensure proper startup of IPFS daemon 2025-07-02 05:30:34 +03:00
08d110b7e6 feat: Update Docker configurations and integrate IPFS and OrbitDB services 2025-06-21 12:07:36 +03:00
64ed9e82a7 Add integration tests for blog workflow and supporting infrastructure
- Implemented comprehensive integration tests for user management, category management, content publishing, comment system, performance, scalability, and network resilience.
- Created DockerNodeManager to manage Docker containers for testing.
- Developed ApiClient for API interactions and health checks.
- Introduced SyncWaiter for synchronizing node states and ensuring data consistency.
- Enhanced test reliability with increased timeouts and detailed logging.
2025-06-21 11:15:33 +03:00
344a346fd6 refactor: Remove jest.real.config.cjs configuration file 2025-06-19 22:43:35 +03:00
83c7b985ff Remove real integration tests and related setup files
- Deleted the real integration test file `real-integration.test.ts` which contained tests for the DebrosFramework, RealTestUser, and RealTestPost models.
- Removed the `helia-wrapper.ts`, `ipfs-setup.ts`, `orbitdb-setup.ts`, `swarm-setup.ts`, and `test-lifecycle.ts` files that provided setup and utility functions for the real IPFS and OrbitDB network tests.
2025-06-19 22:26:56 +03:00
831c977eda feat: Add debug script for field defaults and enhance Jest configuration for ES modules 2025-06-19 21:47:35 +03:00
1e3c5d46be refactor: Remove unused getters from QueryBuilder class 2025-06-19 21:30:21 +03:00
8d3ccdc80c Add real integration tests for IPFS and OrbitDB
- Implemented real integration tests in `real-integration.test.ts` to validate the functionality of the DebrosFramework with IPFS and OrbitDB.
- Created `RealTestUser` and `RealTestPost` models for testing user and post functionalities.
- Developed setup and teardown lifecycle methods for managing the test environment.
- Introduced `RealIPFSService` and `RealOrbitDBService` classes for managing IPFS and OrbitDB instances.
- Added `PrivateSwarmSetup` for configuring a private IPFS network.
- Implemented utility functions for creating and shutting down IPFS and OrbitDB networks.
- Created a global test manager for managing test lifecycle and network state.
- Updated TypeScript configuration to include test files and exclude them from the main build.
2025-06-19 21:29:50 +03:00
0807547a51 feat: Enhance BaseModel validation with unique constraint checks and improve RelationshipManager model resolution 2025-06-19 20:55:17 +03:00
bac55a5e0c feat: Enhance BaseModel with improved shadowing property cleanup and validation during save operations 2025-06-19 13:54:54 +03:00
abb9734b36 feat: Improve field handling in BaseModel and Field decorator; ensure getter reliability and remove shadowing properties 2025-06-19 13:44:08 +03:00
3a22a655b2 feat: Enhance BaseModel field handling with error logging and getter fixes; update Field decorator for private key access 2025-06-19 13:23:25 +03:00
383419beec feat: Update DebrosFramework to reflect config changes in status; add health check and service retrieval methods; enhance RelationshipManager for model resolution in eager loading 2025-06-19 13:16:34 +03:00
4966df43d5 feat: Enhance decorators and query builder with improved inheritance handling; add targetModel alias for relationship compatibility; implement validation for field names and operators 2025-06-19 13:07:56 +03:00
0305cb1737 feat: Enhance QueryBuilder with operator normalization and null handling; update ShardManager to ensure shard index bounds; improve BaseModel tests for email validation 2025-06-19 12:54:21 +03:00
9f425f2106 feat: Refactor BaseModel and decorators for improved field handling and relationships 2025-06-19 12:45:10 +03:00
64163a5b93 feat: Enhance model decorators and query builder
- Added validation for field and model configurations in decorators.
- Improved handling of relationships in the BelongsTo, HasMany, HasOne, and ManyToMany decorators.
- Introduced new methods in QueryBuilder for advanced filtering, caching, and relationship loading.
- Updated RelationshipManager to support new relationship configurations.
- Enhanced error handling and logging in migration tests.
- Refactored test cases for better clarity and coverage.
2025-06-19 12:09:23 +03:00
071723f673 feat: add Jest configuration and basic framework tests 2025-06-19 11:26:45 +03:00
f58fa0caf7 Add coverage prettify styles and scripts, sorting functionality, and search feature
- Added prettify.css for code highlighting in coverage reports.
- Introduced prettify.js for syntax highlighting functionality.
- Included sort-arrow-sprite.png for sorting indicators in the coverage summary.
- Implemented sorter.js to enable sorting of coverage summary table columns.
- Added a search box to filter coverage summary rows based on user input.
2025-06-19 11:20:26 +03:00
1cbca09352 Add unit tests for RelationshipManager and ShardManager
- Implement comprehensive tests for RelationshipManager covering various relationship types (BelongsTo, HasMany, HasOne, ManyToMany) and eager loading functionality.
- Include caching mechanisms and error handling in RelationshipManager tests.
- Create unit tests for ShardManager to validate shard creation, routing, management, global index operations, and query functionalities.
- Ensure tests cover different sharding strategies (hash, range, user) and handle edge cases like errors and non-existent models.
2025-06-19 11:20:13 +03:00
067e462339 Add SVG illustration and TypeScript configuration file
- Added a new SVG file `undraw_docusaurus_tree.svg` to the static images directory for enhanced visual representation.
- Created a `tsconfig.json` file to improve TypeScript support and editor experience, extending from the Docusaurus base configuration.
2025-06-19 07:02:58 +03:00
eea46b0144 Bug refactor to new version 2025-06-19 06:43:54 +03:00
dcc21d5867 Merge pull request 'refactor: enhance connection management and error handling, sanitize data, and improve file upload logging' (#2) from alpha-0.0.24 into main
All checks were successful
Publish Alpha Package to npm / publish (push) Successful in 52s
Reviewed-on: #2
2025-06-18 12:34:15 +00:00
3232cf2d3e refactor: enhance connection management and error handling, sanitize data, and improve file upload logging 2025-06-18 15:28:32 +03:00