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 issue with generating slug for sharing #18986

Merged

Conversation

arash77
Copy link
Collaborator

@arash77 arash77 commented Oct 14, 2024

This pull request fixes an issue with generating a slug for sharing if it is not alphanumeric.
Related to #18584

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@arash77 arash77 marked this pull request as ready for review October 14, 2024 14:34
@github-actions github-actions bot added this to the 24.2 milestone Oct 14, 2024
@arash77
Copy link
Collaborator Author

arash77 commented Oct 15, 2024

Should I add types-python-slugify==8.0.2.20240310 ; python_version >= "3.8" and python_version < "3.13" into /lib/galaxy/dependencies/pinned-typecheck-requirements.txt to fix the Library stubs not installed error?

@nsoranzo
Copy link
Member

Should I add types-python-slugify==8.0.2.20240310 ; python_version >= "3.8" and python_version < "3.13" into /lib/galaxy/dependencies/pinned-typecheck-requirements.txt to fix the Library stubs not installed error?

Can you please also modify pyproject.toml by adding python-slugify to the [tool.poetry.dependencies] section and types-python-slugify to the [tool.poetry.group.typecheck.dependencies] section?

@arash77
Copy link
Collaborator Author

arash77 commented Oct 15, 2024

Should I add a requirement into one of the test-requirements.txt to fix the Test Galaxy packages?

@nsoranzo
Copy link
Member

Should I add a requirement into one of the test-requirements.txt to fix the Test Galaxy packages?

Sorry, forgot about that! You should add python-slugify to the [options] -> install_requires section of packages/app/setup.cfg . That's because this dependency is used in lib/galaxy/manages which ends up in the galaxy-app package as you can see from the packages/app/galaxy/managers symlink.
Happy to give you more details about how the modules are split in packages if you are interested.

pyproject.toml Outdated Show resolved Hide resolved
@arash77
Copy link
Collaborator Author

arash77 commented Oct 15, 2024

Should I add a requirement into one of the test-requirements.txt to fix the Test Galaxy packages?

Sorry, forgot about that! You should add python-slugify to the [options] -> install_requires section of packages/app/setup.cfg . That's because this dependency is used in lib/galaxy/manages which ends up in the galaxy-app package as you can see from the packages/app/galaxy/managers symlink. Happy to give you more details about how the modules are split in packages if you are interested.

Thank you for the explanation! I’d love to know more.

@nsoranzo
Copy link
Member

Thank you for the explanation! I’d love to know more.

Some info is in this presentation, slides 65-72:

https://training.galaxyproject.org/training-material/topics/dev/tutorials/architecture/slides.html#65

Ping me on Matrix if you need clarifications.

@arash77
Copy link
Collaborator Author

arash77 commented Oct 17, 2024

The test failures seems to be irrelevant.

@arash77 arash77 requested a review from a team October 24, 2024 10:45
Copy link
Contributor

@davelopez davelopez left a comment

Choose a reason for hiding this comment

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

Looks fine to me, thank you @arash77!

@arash77 arash77 force-pushed the fix-none-alphanumeric-characters-in-slug branch from 0129b7c to 5d9a867 Compare November 5, 2024 15:13
@arash77
Copy link
Collaborator Author

arash77 commented Nov 5, 2024

@nsoranzo Could you check if I am adding the dependencies right with the new changes

@nsoranzo
Copy link
Member

nsoranzo commented Nov 5, 2024

@nsoranzo Could you check if I am adding the dependencies right with the new changes

LGTM, thanks!

@jdavcs jdavcs merged commit 9834ecd into galaxyproject:dev Nov 5, 2024
56 of 58 checks passed
Copy link

github-actions bot commented Nov 5, 2024

This PR was merged without a "kind/" label, please correct.

@jdavcs jdavcs mentioned this pull request Nov 5, 2024
4 tasks
@jdavcs jdavcs added the kind/bug label Nov 5, 2024
@arash77 arash77 deleted the fix-none-alphanumeric-characters-in-slug branch November 6, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants