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 initial workflows fetch fails and blocks redirect by moving fetch to pi-requests #1174

Merged

Conversation

hvangeffen
Copy link
Collaborator

Description

Probably failed since original fetch was missing transformRequest.

Checklist

  • Make the title short and concise
  • Select the correct label to include it in the release notes:
    • rel: new feature
    • rel: improvement
    • rel: fixes
    • rel: ignore
      Select to rel: ignore if this pull request fixes a New Feature or Improvement in the coming release. Update related Pull Request.
  • Update documentation.
  • Update tests.

}

export async function fetchWorkflows(): Promise<Workflow[]> {
const baseUrl = configManager.get('VITE_FEWS_WEBSERVICES_URL')
Copy link
Collaborator

Choose a reason for hiding this comment

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

This snippet probably occurs much more often in the WebOC, maybe this should be a utility function. Perhaps it should even grab a singleton instance of a PiWebserviceProvider?

@hvangeffen hvangeffen merged commit d4cb760 into main Jan 27, 2025
9 checks passed
@hvangeffen hvangeffen deleted the 1170-dwo-953-initial-workflows-fetch-fails-and-blocks-redirect branch January 27, 2025 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants