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

Fixing version instance class generation #17

Closed
wants to merge 3 commits into from

Conversation

mclacore
Copy link
Contributor

@mclacore mclacore commented May 7, 2024

Getting this error and not sure why: Fragment refs not supported

Also, updated the sort for update-instance-classes.rb to build the params $defs because i was getting the error comparison of Hash with Has failed. this was a messy workaround to get the instance classes to generate, though i had to manually modify the massdriver.yaml after to clean up a little.

@mclacore
Copy link
Contributor Author

mclacore commented May 7, 2024

Also, the form is broken, even the live version. The instance class field won't show up unless 14.6 or lower is selected.

Edit: fixed with latest commit

@coryodaniel
Copy link
Member

Also, the form is broken, even the live version. The instance class field won't show up unless 14.6 or lower is selected.

Edit: fixed with latest commit

This module has to be built with the script, pg has a lot of version/instance size specifics that are built. I would approve PR #15 which addresses this. There is a merge conflict though because the YAml changes merged last week. Whole YAML file is managed via the build script.

I'll rebase and push again on #15

@@ -185,7 +185,7 @@ def transform_instance_class_from(t, from)
"properties" => {
"version" => {"const" => version},
"instance_class" => {
"$ref" => ref_name
$ref => ref_name
Copy link
Member

Choose a reason for hiding this comment

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

$ref is a valid variable declaration in ruby, this will produce strange behavior, I assume it'll merge over the value on the key nil which is what $ref will evaluate to.

@mclacore mclacore closed this May 7, 2024
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