Skip to content

Update backend to handle .json files in SUPPORTED_DISTROS#237

Open
nikhilshinde63 wants to merge 2 commits intoopenmainframeproject:react-frontendfrom
nikhilshinde63:backend-frontend-integration
Open

Update backend to handle .json files in SUPPORTED_DISTROS#237
nikhilshinde63 wants to merge 2 commits intoopenmainframeproject:react-frontendfrom
nikhilshinde63:backend-frontend-integration

Conversation

@nikhilshinde63
Copy link
Contributor

No description provided.

Signed-off-by: Nikhil-Shinde7 <Nikhil.Shinde7@ibm.com>
Signed-off-by: Nikhil-Shinde7 <Nikhil.Shinde7@ibm.com>
@nikhilshinde63 nikhilshinde63 force-pushed the backend-frontend-integration branch from c63161d to f8f2f2b Compare September 30, 2025 14:14
Copy link
Contributor

@pleia2 pleia2 left a comment

Choose a reason for hiding this comment

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

The changes to the Python files are fine, but we do want to continue using the .example file and ignoring supported_distros.py so we can more easily do upgrades.

@@ -1,3 +1,2 @@
*.pyc
.env
src/config/supported_distros.py
Copy link
Contributor

Choose a reason for hiding this comment

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

So, the reason we ignore this is when we're running this in production this file will probably be edited by the user based on what distributions they want to support. We don't want it overwritten when we pull in the new code from git.

That's why we ship with the .example file that the user then copies into this location.

Copy link
Contributor

@pleia2 pleia2 left a comment

Choose a reason for hiding this comment

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

Tested with the bin/database_build.py script, noted the below issues I had when running it.

Once these .json extension are added back to the file system references, it created the databases as expected.

@pleia2
Copy link
Contributor

pleia2 commented Oct 23, 2025

Tested with the bin/database_build.py script, noted the below issues I had when running it.

Once these .json extension are added back to the file system references, it created the databases as expected.

Ignore this one, when used with the supported_distros.py with the .json extension, it worked as expected. I think the python scripts are OK.

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