mirror of
https://github.com/grafana/grafana.git
synced 2026-04-10 11:46:28 -04:00
* WIP * Make transformations properties optional, create correct object for partial spec * update the generated client type, fix logic for submission of transformations * Update readme with what is needed for updating the client * Move logic to utils, add test * Add tests to increase coverage * continue to build out test coverage * Add tests * Add create correlation * WIP improve function coverage * fix test * wip add notification on edit * Moving directories * Move back as we are no longer rendering with a wrapper * Run the generator * Add scaffolding and reorganize tests * WIP * WIP * add meta property to prevent error * Move handler logic to support different list scenarios * Add create scenario, turn on the tests * fix the casing * Cleanup * Lint cleanup * test files must contain tests… * fix the import * Move handlers out of test-utils * empty commit * add remaining tests from correlationspage legacy, add other endpoint scenarios * WIP - work on fixtures * Remove debugging garbage, turn on all tests, get editing working * Clean up some unneeded boilerplate, consolidate fake correlation stuff * more cleanup found by linter * WIP - have datasources lookup actually apply to set, skip test to debug later, fix renaming requirements for datasources * Add note about skipping provisioning tests for now and unskip this test that actually works fine * Reorganize to simplify and remove circ dependency * Rename directory to exclude it from code coverage test * cleanup |
||
|---|---|---|
| .. | ||
| constants.js | ||
| generate.js | ||
| index.js | ||
| metadata.js | ||
| raw.js | ||
| README.md | ||
| utils.js | ||
Codeowners Manifest Scripts
Scripts for generating and caching CODEOWNERS manifest data.
Each of these scripts can be run individually if needed, but index.js is most useful because it combines them all.
Usage
# Combined script
node index.js # Generate complete manifest with caching
# Individual scripts
node metadata.js # Generate metadata with hashes
node raw.js # Generate raw audit data
node generate.js # Process raw data into manifest files
Control flow of index.js
flowchart TD
A[index.js] --> B[metadata.js: Generate new metadata]
B --> C{Existing metadata exists?}
C -->|No| D[Generate all files]
C -->|Yes| E{Hashes match?}
E -->|No| D
E -->|Yes| F[Skip generation]
D --> G[raw.js: Generate audit data]
G --> H[generate.js: Process into JSON files]
H --> I[Save new metadata]
I --> J[Complete]
F --> J
style F fill:#e1f5fe
style J fill:#e8f5e8
Default output
By default these scripts will write the following files to the /codeowners-manifest/* directory.
audit-raw.jsonl- Raw CODEOWNERS audit data in JSONL format (for fast stream processing)teams.json- List of all codeowners (for validating codeowner names)teams-by-filename.json- Files mapped to their respective codeownersfilenames-by-team.json- Codeowners mapped to their respective filesmetadata.json- Hashes for cache validation
Excluded paths
For a list of excluded paths and filenames, see jest.config.codeowner.js.