Skip to content

Conversation

@dudanogueira
Copy link
Contributor

Issue(s)

While creating an webhook integration, it was missing the v1/. Also, the toast was not properly displaying error messages

Before:

image

image

After:

image

Steps to test or reproduce

Try creating an Integration Webhook in Admin > Integrations.
The payload will be sent to: http://localhost:3000/api/integrations.create

Edit a user, and set it's email the same email as an existing user: the toast message will not display the correct message

@dudanogueira dudanogueira requested a review from a team as a code owner June 24, 2022 20:57
@dudanogueira dudanogueira requested a review from debdutdeb June 24, 2022 20:59
and 2FA enable/disable wrong endpoint
@dudanogueira
Copy link
Contributor Author

Found more paces without the "/v1/", being:
users.2fa.enableEmail
and integrations.remove

@debdutdeb debdutdeb changed the title [Fix] Webhook Integration Creation + string error toast msg [FIX] Webhook Integration Creation + string error toast msg Jun 25, 2022
@debdutdeb debdutdeb added this to the 5.0.0 milestone Jun 26, 2022
`dispatchToastMessage` will handle `{error: string} | {message: string}` case accordingly, no need to forcefully cast or force member passing.
@debdutdeb debdutdeb added stat: ready to merge PR tested and approved waiting for merge stat: QA tested and removed stat: needs QA labels Jun 26, 2022
@debdutdeb debdutdeb requested a review from ggazzo June 27, 2022 09:52
@ggazzo ggazzo changed the title [FIX] Webhook Integration Creation + string error toast msg Regression: Webhook Integration Creation + string error toast msg Jun 27, 2022
@kodiakhq kodiakhq bot merged commit c8f93fa into RocketChat:develop Jun 27, 2022
gabriellsh added a commit that referenced this pull request Jun 27, 2022
…turbo

* 'develop' of github.com:RocketChat/Rocket.Chat: (42 commits)
  Chore: Major refactors in pageobjects (#26015)
  [BREAK] Remove show message in main thread preference (#26002)
  Regression: Webhook Integration Creation + string error toast msg (#26008)
  Chore: convert e2e to ts (#25958)
  Regression: Room Endpoint Call Issues (#25928)
  Chore: Fixes e2e playwright intermittences (#25984)
  Chore: Fuselage update (#26004)
  Chore: Small fix on callProvider (#25963)
  [FIX] Initial members value on Create Channel Modal (#26000)
  Chore: Migrate from meteor model to raw (#25756)
  Chore: VoIP Context (#25994)
  Chore: Fuselage update (#25983)
  [FIX] sidebar colors (#25987)
  Regression: Non-reactive routes (#25990)
  [BREAK] use urlParams on omnichannel/agent/extension/ (#25982)
  [FIX] toolbox menu behind thread component (#25925)
  [FIX] Sort by scope or creation date not working on canned responses list (#25475)
  Chore: Colors (#25969)
  Revert "[BREAK] use urlParams on omnichannel/agent/extension/" (#25980)
  Regression: Prevent Form Submit on Reset Click
  ...
@dudanogueira dudanogueira deleted the fix/webhook-creation-and-toast-error branch July 4, 2022 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stat: ready to merge PR tested and approved waiting for merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants