aryzac-io / Intent.Modules

Common modules and designers for Intent Architect
https://intentarchitect.com/
0 stars 0 forks source link

[Bug]: 5976160351 - Resolve route synchronisation issue #1

Open stephanjohnson opened 7 months ago

stephanjohnson commented 7 months ago

There is an inconsistency observed in the synchronization between route names and parameters within the Service Proxies functionality. This issue manifests itself in the following way:

Route Update Failure: When renaming a variable, the corresponding route does not get updated automatically. This leads to a mismatch between the expected route and the actual variable name being used in the system.

Additional Context

This issue has been identified as a common pitfall for users, indicating a broader impact on user experience and the need for a prompt and effective solution.

Potential Solution

Add a designer validation that a route parameter doesn't exist.

stephanjohnson commented 7 months ago

would this script be the right place to do the validation updates?

C:\dev\Intent.Modules\DesignerMacros\src\services-rest-route-validation\command\command-rest-route-validation.ts (including the operation/query variants?)

And also, it seems like there are a couple of references to ValidateRestRoutes in the intent XML metadata for Intent.Modules. Should I just update all of them with the results from this script compilation?