Skip to content

Proper fix for the issue 112#116

Merged
RoiArthurB merged 5 commits intodevfrom
proper-fix-issue-112
Feb 13, 2026
Merged

Proper fix for the issue 112#116
RoiArthurB merged 5 commits intodevfrom
proper-fix-issue-112

Conversation

@RoiArthurB
Copy link
Contributor

@RoiArthurB RoiArthurB commented Feb 12, 2026

Pull Request

Checklist

  • Code is complete and ready for review
  • Tests have been added/updated (if applicable)
  • Documentation has been updated (if applicable)

Description

All documented in the messages of each commit. This has been a small refactoring, so the commits aren't atomic but are all documented as much as possible.

Should revert 1c6d105 before merging.

Related Issue

#112

At the moment, nowhere using this function is giving it a string
- Creates a lot of bug
- Slim refactoring of the Model class
- Actually make gaml file path correction/verification used
  - Was stored in a private variable, but never used when getting json infos
- Clean-up, log and document each parts
- Was trash, fully rework to be :
  1. Readable code
    - Comments
    - Logically ordered
    - Semi-column
  2. Understandable logs (proper sentences, set at proper level)
  3. Rely on other file verification and work
  4. Use the Model objects, as well as properly typing elements
  5. Logs and code clean-up
    - Probably not finished, but already removed a lot
    - Finished to replace `console.log` by logger
    - Stop stringify everything, especially if it's to parse it back right after
  6. Refactoring class to avoid code smells and remove dead code
  7. Kept the outside logic (requesting JSON stringified with nested catalog)
- This commit should have been splitted, but since I changed everything, this comment is the log explaining it
Revert to old method which is way more reliable (since the index is managed by the backend) using the newly added `model_index` attribute in each VU_MODEL_SETTING_JSON (generated and managed by the backend, so no possible out of bound or anything)
@sonarqubecloud
Copy link

@RoiArthurB RoiArthurB merged commit 397e1f8 into dev Feb 13, 2026
2 checks passed
@RoiArthurB RoiArthurB deleted the proper-fix-issue-112 branch February 13, 2026 07:07
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.

1 participant