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

fix: HTTP Send parameter key issues #167

Merged
merged 2 commits into from
Sep 14, 2023
Merged

Conversation

ianshade
Copy link
Member

This PR fixes three issues around EditTimelineObjHTTPSendAny

  1. unwanted _1 was appended to keys that were not duplicates, when the Key input was focused and un-focused without making a change
  2. renamed or deleted parameters were kept as undefined, making the parameter count and numbering inaccurate
  3. if n parameters were defined, and one of them was named param<n>, it would get overwritten when adding a new parameter

Note: using deepmerge-ts with customized record merging was the cleanest thing I could come up with. Alternatively we could just stringify and parse those objects to have undefined removed, or avoid passing undefined between renderer and main process, and instead use some other way of marking properties to delete.

fixes unwanted _1 being appended to keys that are not duplicates;
deletes parameter meant to be deleted, keeping parameter count accurate;
prevents overriding an existing parameter when adding a new one
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@nytamin nytamin merged commit b51ab4b into develop Sep 14, 2023
@ianshade ianshade deleted the fix/http-send-key-appendage branch September 20, 2023 10:09
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