mattcasters opened a new pull request, #7597:
URL: https://github.com/apache/hop/pull/7597

   ## Summary
   
   - Adds an opt-in project setting to automatically export hop metadata to a 
single JSON file (`metadata.json` by default, configurable) whenever the 
project is enabled or metadata is created/updated/deleted.
   - Implements shared `ProjectsMetadataExporter` (also used by `hop-conf 
--export-metadata`) and extension points on `ProjectActivated` plus 
`HopGuiMetadataObjectCreated/Updated/Deleted`.
   - Closes coverage gaps so rename and metadata tree drag-drop moves fire the 
updated extension point, and documents the feature in the projects metadata 
page.
   
   ## Motivation
   
   Integrations such as Airflow → Hop Server need a single metadata JSON 
export. Users often forget the manual export step (#3553). This keeps the file 
in sync automatically when enabled per project.
   
   ## Test plan
   
   - [x] Unit tests: `ProjectTest` (serialization of new fields), 
`ProjectsMetadataExporterTest` (path resolution + file write)
   - [ ] In Hop GUI: enable auto-export on a project, set filename, switch to 
the project → file appears under project home
   - [ ] Create/edit/delete a connection (or other metadata) → export file 
updates
   - [ ] Confirm read-only projects do not write the file
   - [ ] Confirm `hop-conf -p <project> -xm <file>` still works
   
   Fixes #3553


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to