Skip to content

Feat/cloudflare measurements v2#326

Open
vipulbhavsar94 wants to merge 304 commits into
stagingfrom
feat/cloudflare-measurements-v2
Open

Feat/cloudflare measurements v2#326
vipulbhavsar94 wants to merge 304 commits into
stagingfrom
feat/cloudflare-measurements-v2

Conversation

@vipulbhavsar94

Copy link
Copy Markdown
Collaborator

No description provided.

niteshbhardwaj02 and others added 30 commits April 29, 2025 11:48
feat: Add ndtVersion field to MeasurementDto and MeasurementService
…elist

Dev merge/category countries whitelist
shantanunagarro-tech and others added 28 commits April 14, 2026 20:37
Will be handled at service layer
Health Entity DB Implementation - Prisma Migration
…isma-migr"

This reverts commit 9bab779, reversing
changes made to 0c3d188.
adding chunks schools many update and also only targating status base…
adding new col external id and also serarchable
Add health columns to existing tables
Make school_id and giga_id_school id nullable
…ty metrics extraction

- Updated `package.json` and `package-lock.json` to use `@nestjs/schedule` version 6.1.3 and `cron` version 4.4.0.
- Added new DTOs for Cloudflare measurements, including detailed metrics for data usage, access information, server information, and measurement results.
- Implemented mapping functions to convert Cloudflare measurement data into the application's internal format.
- Enhanced the `MeasurementController` to support creating measurements by protocol, specifically for Cloudflare.
- Added validation for measurement list queries and protocols.
- Introduced quality metrics extraction functions to derive metrics from Cloudflare results.
- Updated service methods to handle Cloudflare measurements and persist relevant quality metrics.
- Added tests to ensure correct functionality for Cloudflare measurement handling and quality metrics extraction.

Co-authored-by: Cursor <cursoragent@cursor.com>
…chema, and update migration to drop related database constraints and tables.
…DME with links to new documentation files

- Introduced a section in `CONTRIBUTING.md` outlining the process for documenting merged pull requests, including file naming conventions and required content.
- Updated `README.md` to include links to `CONTRIBUTING.md`, `CHANGELOG.md`, and new documentation directories for per-PR history and AI agent rules.
- Added `CONTEXT_RULES.md` to define operational directives for AI agents working within the repository.
- Created `CHANGELOG.md` for maintaining an append-only log of merged PRs.
- Established `CURRENT_STATE.md` to serve as the single source of truth for the current system state.
- Added architecture decision records (ADR) to document significant architectural choices.

This commit enhances the clarity and structure of the contribution process and documentation for future contributors.
- Removed the migration check from the PR template to streamline the validation process.
- Updated the validation section in the Cloudflare measurements protocol documentation to reflect that manual testing is now marked as complete, removing the need for a separate migration check.

These changes enhance clarity in the PR process and ensure accurate documentation of validation steps.
- Removed the `country-config` module, including its controller, service, and DTOs, as well as the associated database table and enum.
- Updated the `CHANGELOG.md` to reflect the removal of the legacy `country-config` API and the introduction of the `protocol-config` module for country/school configuration management.
- Enhanced documentation in `CURRENT_STATE.md` and ADR 001 to clarify the new structure and the rationale behind the removal of legacy components.
- Adjusted the application module to unregister the `CountryConfigModule` and ensure all references to the legacy API are removed.

These changes streamline the configuration management process and eliminate outdated components, promoting a more cohesive architecture.
…test isolation

- Removed the direct provision of `AuthGuard` and `ThrottlerGuard` in the test setup.
- Implemented overrides for these guards to return a resolved promise for `canActivate`, enhancing test reliability and isolation.
- Updated `ProtocolConfigService` tests to include new properties in the country protocol configuration, ensuring alignment with the latest schema changes.

These adjustments streamline the testing process and ensure that tests accurately reflect the current application logic.
…ete obsolete migration files related to country configuration and measurement protocol quality metrics. Introduce a new migration for the updated protocol configuration structure, including new tables and foreign key constraints.
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.

5 participants