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(client): improve string validation when trying to upload a dataset file by URL #2834

Merged
merged 4 commits into from Jan 18, 2024

Conversation

andre-code
Copy link
Contributor

@andre-code andre-code commented Oct 4, 2023

PR to fix bug when upload a dataset file by url.

Changes:

  • Modify function to validate an url

Fix #2801
/deploy extra-values=core.sentry.dsn=https://0cc02f3a02d3474d9f7e90915873ab4d@sentry.dev.renku.ch/2,core.sentry.environment=renku-dev,core.sentry.enabled=true

@andre-code andre-code temporarily deployed to renku-ci-ui-2834 October 4, 2023 14:44 — with GitHub Actions Inactive
@RenkuBot
Copy link
Contributor

RenkuBot commented Oct 4, 2023

You can access the deployment of this PR at https://renku-ci-ui-2834.dev.renku.ch

@andre-code andre-code temporarily deployed to renku-ci-ui-2834 October 9, 2023 12:03 — with GitHub Actions Inactive
@lorenzo-cavazzi
Copy link
Member

@andre-code Is this PR waiting for a renku-core fix?

@lorenzo-cavazzi
Copy link
Member

I think the renku-core requirement is not a problem anymore (renku-core 2.8.0 is out)

Copy link
Member

@lorenzo-cavazzi lorenzo-cavazzi left a comment

Choose a reason for hiding this comment

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

This works fine now 👍

We can use the new function instead of the older isUrl; that's actually used only in a single other place where the new function should be more reliable. I suggest replacing the import with isValidURL and removing the older function isUrl (changing the code is also fine; I find the new name you gave to the new function more intuitive)

@lorenzo-cavazzi lorenzo-cavazzi changed the title fix(client): upload a dataset file by url fix(client): improve string validation when trying to upload a dataset file by URL Jan 18, 2024
@lorenzo-cavazzi lorenzo-cavazzi marked this pull request as ready for review January 18, 2024 10:55
@lorenzo-cavazzi lorenzo-cavazzi requested a review from a team as a code owner January 18, 2024 10:55
Copy link
Member

@lorenzo-cavazzi lorenzo-cavazzi left a comment

Choose a reason for hiding this comment

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

👍

@lorenzo-cavazzi lorenzo-cavazzi merged commit 88db05e into master Jan 18, 2024
16 of 17 checks passed
@lorenzo-cavazzi lorenzo-cavazzi deleted the 2801-upload-datasetfile-by-url branch January 18, 2024 12:45
@RenkuBot
Copy link
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

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.

URL validation when uploading files to datasets is too strict
3 participants