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

DXCDT-548: Serve prompt data on demand #868

Merged

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Oct 6, 2023

🔧 Changes

In this PR we accept websocket messages sent from the web app to fetch prompt data and serve it back with defaults in, if custom text is not set on them.

📚 References

🔬 Testing

More e2e tests will follow in future PRs.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

var promptToFetch promptData
if err := json.Unmarshal(message.Payload, &promptToFetch); err != nil {
h.display.Errorf("failed to unmarshal %q payload: %v", message.Type, err)
continue
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now opting not to close the connection, but this will most likely be subject to change when we start integrating with the web app in a closer manner.

@sergiught sergiught marked this pull request as ready for review October 6, 2023 12:53
@sergiught sergiught requested a review from a team as a code owner October 6, 2023 12:53
Base automatically changed from DXCDT-547-websocket-server to feature/auth0-universal-login-customize October 6, 2023 14:46
@sergiught sergiught force-pushed the DXCDT-548-prompts-on-demand branch from 78f61bd to 071b5c2 Compare October 6, 2023 15:17
@sergiught sergiught requested a review from willvedd October 6, 2023 15:17
@codecov-commenter
Copy link

Codecov Report

All modified lines are covered by tests ✅

❗ No coverage uploaded for pull request base (feature/auth0-universal-login-customize@8f5a0cc). Click here to learn what that means.

Additional details and impacted files
@@                            Coverage Diff                             @@
##             feature/auth0-universal-login-customize     #868   +/-   ##
==========================================================================
  Coverage                                           ?   73.00%           
==========================================================================
  Files                                              ?       93           
  Lines                                              ?    12185           
  Branches                                           ?        0           
==========================================================================
  Hits                                               ?     8896           
  Misses                                             ?     2771           
  Partials                                           ?      518           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sergiught sergiught merged commit 871ad3b into feature/auth0-universal-login-customize Oct 6, 2023
6 checks passed
@sergiught sergiught deleted the DXCDT-548-prompts-on-demand branch October 6, 2023 15:40
sergiught added a commit that referenced this pull request Nov 1, 2023
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.

4 participants