Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Don't add the slug of the space in some links#12590

Merged
andreslucena merged 13 commits intodevelopfromchore/admin-links
Mar 19, 2024

Conversation

alecslupu
Copy link
Contributor

@alecslupualecslupu commentedMar 13, 2024
edited
Loading

🎩 What? Why?

This PR makes sure there are no URL that is displaying the participatory space slug as query string.

📌 Related Issues

Link your PR to an issue

Testing

  1. Visit any participation space show page
  2. Login as admin
  3. Click edit button in the frontend
  4. You should be redirected to admin, not having the<participatory_space>_slug argument.

♥️ Thank you!

@alecslupualecslupu added type: changePRs that implement a change for an existing feature type: fixPRs that implement a fix for a bug and removed type: changePRs that implement a change for an existing feature labelsMar 13, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 13, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 13, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 13, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 13, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 13, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 14, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 14, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 14, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 14, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 14, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 14, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 14, 2024
@alecslupualecslupu linked an issueMar 15, 2024 that may beclosed by this pull request
@alecslupualecslupu marked this pull request as ready for reviewMarch 15, 2024 08:50
Copy link
Member

@andreslucenaandreslucena left a comment

Choose a reason for hiding this comment

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

The fix and the code is 💯

I have some improvements in the rspecs.

Also, as I mentioned in#11176, we should change some specs so we would have detected this before:

diff --git a/decidim-core/spec/presenters/decidim/resource_locator_presenter_spec.rb b/decidim-core/spec/presenters/decidim/resource_locator_presenter_spec.rbindex 3f5ae0af02..c75166c6ea 100644--- a/decidim-core/spec/presenters/decidim/resource_locator_presenter_spec.rb+++ b/decidim-core/spec/presenters/decidim/resource_locator_presenter_spec.rb@@ -44,13 +44,13 @@ module Decidim       describe "#show" do         subject { described_class.new(participatory_process).show }-        it { is_expected.to start_with("/admin/participatory_processes/my-process") }+        it { is_expected.to eq("/admin/participatory_processes/my-process") }       end       describe "#edit" do         subject { described_class.new(participatory_process).edit }-        it { is_expected.to start_with("/admin/participatory_processes/my-process/edit") }+        it { is_expected.to eq("/admin/participatory_processes/my-process/edit") }       end     end

Can you apply this change and also check out my suggestions, please? Thanks

Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
github-actions[bot]
github-actionsbot previously approved these changesMar 19, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 19, 2024
github-actions[bot]
github-actionsbot previously approved these changesMar 19, 2024
Copy link
Member

@andreslucenaandreslucena left a comment

Choose a reason for hiding this comment

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

👍🏽

@andreslucenaandreslucena merged commitec162a6 intodevelopMar 19, 2024
108 checks passed
@andreslucenaandreslucena deleted the chore/admin-links branchMarch 19, 2024 18:09
andreslucena added a commit that referenced this pull requestMay 9, 2024
* Don't add the slug of the space in some links* RUnning linters* Add space tests* Add Debug info* Fix debugger* Fix failing specs* Fixing suite* remove the debugger* Apply suggestions from code reviewCo-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>* Extract reusable example* Rename file* Fix initiatives pipeline---------Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@andreslucenaandreslucenaandreslucena approved these changes

@github-actionsgithub-actions[bot]github-actions[bot] approved these changes

Assignees

@andreslucenaandreslucena

Labels
type: fixPRs that implement a fix for a bug
Projects
Archived in project
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

participatory_process_slug get parameter added in some links
2 participants
@alecslupu@andreslucena

[8]ページ先頭

©2009-2025 Movatter.jp