Fix webhook link logic
WHY are these changes introduced?
There are two ways of defining webhooks in the toml:
- Condensed: multiple topics in the same subscription definition (sharing the same URI)
- Expanded: each subscription has only 1 topic
When linking to a new app we need to default to the condensed state, but right now we are doing expanded.
WHAT is this pull request doing?
- Remove the
simplifyfunction from the specification - Update the webhook reverse transform to transform from expanded to condensed.
How to test your changes?
- Try to link with an app that has multiple webhooks, they should appear in the condensed form in the toml file.
Post-release steps
Measuring impact
How do we know this change was effective? Please choose one:
- [ ] n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
- [ ] Existing analytics will cater for this addition
- [ ] PR includes analytics changes to measure impact
Checklist
- [ ] I've considered possible cross-platform impacts (Mac, Linux, Windows)
- [ ] I've considered possible documentation changes
- [ ] I've made sure that any changes to
devordeployhave been reflected in the internal flowchart.
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. If the changes are user-facing, run "pnpm changeset add" to track your changes and include them in the next release CHANGELOG.
Coverage report
St.:grey_question: |
Category | Percentage | Covered / Total |
|---|---|---|---|
| π‘ | Statements | 71.88% (+0.05% πΌ) |
7145/9940 |
| π‘ | Branches | 69.17% (+0.05% πΌ) |
3529/5102 |
| π‘ | Functions | 71.58% (+0.12% πΌ) |
1917/2678 |
| π‘ | Lines | 73.14% (+0.04% πΌ) |
6723/9192 |
Show files with reduced coverage π»
St.:grey_question: |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| π‘ | ... / select-app.ts |
74.19% (-0.81% π») |
80% (-2.35% π») |
88.89% (-1.11% π») |
76.92% (-0.85% π») |
| π’ | ... / link.ts |
96.7% (+0.19% πΌ) |
90.91% (-1.03% π») |
100% | 96.59% (+0.21% πΌ) |
Test suite run success
1667 tests passing in 774 suites.
Report generated by π§ͺjest coverage report action from 16d806c9721fb52c7c54e4e3e9094188bf6ec8c4
only weirdness I saw when testing is that the the subscriptions showed 0 on the version page, but a refresh showed the subscription I was expecting. not blocking and not related to this PR since it seems to happen on main too but just noting it here
Approved π