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

Rescue from invalid DFC catalog URLs #13182

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mkllnk
Copy link
Member

@mkllnk mkllnk commented Mar 3, 2025

Clockify project #11678 DFC Orders

What? Why?

When importing products, DFC catalog URLs are sometimes pasted with additional characters or missing some parts. We were showing the snail on invalid URLs. But now we are showing a friendly message and tidy invalid whitespace ourselves.

What should we test?

  • Import products from a DFC catalog.
  • Try adding whitespace before or ofter the URL. It should still work.
  • Enter an invalid URL and you should see a friendly message.

Release notes

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

mkllnk added 4 commits March 3, 2025 12:23
@mkllnk mkllnk added the user facing changes Thes pull requests affect the user experience label Mar 3, 2025
@mkllnk mkllnk self-assigned this Mar 3, 2025
@mkllnk mkllnk marked this pull request as ready for review March 3, 2025 02:13
@dacook dacook self-requested a review March 3, 2025 23:51
Copy link
Member

@dacook dacook left a comment

Choose a reason for hiding this comment

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

Very nice 💯

@dacook
Copy link
Member

dacook commented Mar 3, 2025

Moving to test without second review to keep things moving

@mkllnk mkllnk changed the title Invalid dfc catalog url Rescue from invalid DFC catalog URLs Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user facing changes Thes pull requests affect the user experience
Projects
Status: Test Ready 🧪
Development

Successfully merging this pull request may close these issues.

URI::InvalidURIError in admin/dfc_product_imports#index
2 participants