Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OZ-558: Config points page auto-generation from EIP projects application.properties URLs. #22

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

VaishSiddharth
Copy link
Contributor

@VaishSiddharth VaishSiddharth changed the title [WIP] Add support for config points page to be automatically generated from github application.properties OZ-558: [WIP] Add support for config points page to be automatically generated from github application.properties Jan 17, 2025
@mks-d mks-d changed the title OZ-558: [WIP] Add support for config points page to be automatically generated from github application.properties OZ-558: [WIP] Support for config points page auto-generation from GitHub application.properties. Feb 20, 2025
gen_pages.py Outdated
Comment on lines 7 to 11
ODOO_OPENMRS_GITHUB_URL = "https://raw.githubusercontent.com/ozone-his/eip-odoo-openmrs/7773cdb2783c2b7a5310e49ec79e979a65f2c1e0/odoo-openmrs/src/main/resources/config/application.properties"
OPENMRS_ORTHANC_GITHUB_URL = "https://raw.githubusercontent.com/ozone-his/eip-openmrs-orthanc/45b2c6361da5afcb0bf281229f484e8bec7ae0f2/openmrs-orthanc/src/main/resources/config/application.properties"
KEYCLOCK_SUPERSET_GITHUB_URL = ""
OPENMRS_SENAITE_GITHUB_URL = "https://raw.githubusercontent.com/ozone-his/eip-openmrs-senaite/7184244ee52db4df85efab9fed9c63a2d993cbe1/senaite-openmrs/src/main/resources/config/application.properties"
ERPNEXT_OPENMRS_GITHUB_URL = "https://raw.githubusercontent.com/ozone-his/eip-erpnext-openmrs/789020a15dbbb10f0bd5b2c994a1de2e82cf7ae7/erpnext-openmrs/src/main/resources/config/application.properties"
Copy link
Contributor

Choose a reason for hiding this comment

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

Taking the example of eip-openmrs-senaite, why don't you use release tags like

https://raw.githubusercontent.com/ozone-his/eip-openmrs-senaite/refs/tags/2.1.0/senaite-openmrs/src/main/resources/config/application.properties

rather than what I suspect is the latest commit or so:

https://raw.githubusercontent.com/ozone-his/eip-openmrs-senaite/7184244ee52db4df85efab9fed9c63a2d993cbe1/senaite-openmrs/src/main/resources/config/application.properties

?

IMO the docs should be generated for a specific release or (alternatively, but probably not) for the bleeding edge:

https://raw.githubusercontent.com/ozone-his/eip-openmrs-senaite/refs/heads/main/senaite-openmrs/src/main/resources/config/application.properties

Copy link
Contributor Author

@VaishSiddharth VaishSiddharth Feb 24, 2025

Choose a reason for hiding this comment

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

Yeah makes sense. The problem is we will have to wait till the next release.

Comment on lines +19 to +20
app_github_dict = {'Odoo-OpenMRS Flows': ODOO_OPENMRS_GITHUB_URL, 'OpenMRS-SENAITE Flows': OPENMRS_SENAITE_GITHUB_URL,
'ERPNext-OpenMRS Flows': ERPNEXT_OPENMRS_GITHUB_URL,'OpenMRS-Orthanc Flows': OPENMRS_ORTHANC_GITHUB_URL}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this kind of stuff not defeat the purpose a bit? I mean both the naming of each variable (eg. ODOO_OPENMRS_GITHUB_URL) and the writing of the string ahead of it (eg. 'Odoo-OpenMRS Flows').

I think we would like to end up in a situation where we provide a list of eip-a-b URLs and the script does all the magic.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah we can define this in the application.properties for each eip route but I think adding a new application to Ozone is not very frequent so we can have it hard coded here.

@mks-d mks-d changed the title OZ-558: [WIP] Support for config points page auto-generation from GitHub application.properties. OZ-558: [WIP] Config points page auto-generation from EIP projects application.properties URLs. Feb 20, 2025
Copy link
Contributor

@mks-d mks-d left a comment

Choose a reason for hiding this comment

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

Why is this PR still labelled as WIP?

@VaishSiddharth VaishSiddharth changed the title OZ-558: [WIP] Config points page auto-generation from EIP projects application.properties URLs. OZ-558: Config points page auto-generation from EIP projects application.properties URLs. Feb 20, 2025
@VaishSiddharth
Copy link
Contributor Author

I think its ready now. Do note that I have added requirements.txt for easy project setup

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.

2 participants