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 links to filtered search in "Building" blocks on front page (and Dashboard) #507

Open
mlncn opened this issue Oct 31, 2024 · 3 comments
Assignees
Labels
2.x PECE 2.x Release Ready for review Status is work is completed and testing and confirmation needed.

Comments

@mlncn
Copy link
Member

mlncn commented Oct 31, 2024

If i edit the "Link wth Text" (typo in original) for the "See all Artifacts" link in the "Building Content" content block of type Layout block, it looks like this:

/search?search_api_fulltext=&f%5B0%5D=content_type%3Aartifact_tabular_data&f%5B1%5D=content_type%3Aartifact_video&f%5B2%5D=content_type%3Apece_artifact_audio&f%5B3%5D=content_type%3Apece_artifact_bundle&f%5B4%5D=content_type%3Apece_artifact_fieldnote&f%5B5%5D=content_type%3Apece_artifact_image&f%5B6%5D=content_type%3Apece_artifact_pdf&f%5B7%5D=content_type%3Apece_artifact_text&f%5B8%5D=content_type%3Apece_artifact_website

It should look like this:

/search?type[0]=pece_artifact_image&type[1]=pece_artifact_website&type[2]=pece_artifact_pdf&type[3]=pece_artifact_text&type[4]=artifact_video&type[5]=pece_artifact_audio&type[6]=pece_artifact_bundle&type[7]=pece_artifact_fieldnote&type[8]=artifact_tabular_data

(The search_api_fulltext part is not the problem; the apparent double-escaping… hmm, maybe that is not the issue, maybe it is that the view changed. Because this would work too:

/search?type%5B0%5D=pece_artifact_image&type%5B1%5D=pece_artifact_website&type%5B2%5D=pece_artifact_pdf&type%5B3%5D=pece_artifact_text&type%5B4%5D=artifact_video&type%5B5%5D=pece_artifact_audio&type%5B6%5D=pece_artifact_bundle&type%5B7%5D=pece_artifact_fieldnote&type%5B8%5D=artifact_tabular_data)

Anyway, fixing now and here are the currently correct values in case there is more regression related to import/export or something else:

/search?type[0]=pece_annotation

/search?type[0]=pece_memo

/search?type[0]=pece_essay&type[1]=pece_photo_essay&type[2]=pece_timeline_essay

@mlncn mlncn self-assigned this Oct 31, 2024
@mlncn
Copy link
Member Author

mlncn commented Oct 31, 2024

And for Building Projects:

/search?type[0]=pece_project
/search?type[0]=pece_substantive_logic&type[1]=pece_design_logic
/search?vid[0]=groups
/search?type[0]=pece_analytic

Fixed on demo these need to be exported out now:

@mlncn
Copy link
Member Author

mlncn commented Oct 31, 2024

These blocks are exported now:

https://demo-pece.drutopia.org/admin/content/block/3
https://demo-pece.drutopia.org/admin/content/block/4

@MegaKeegMan over to you to make sure the links in Building Content and Building Projects (on front page and in dashboard, the same) work after content import. Thanks!

@mlncn
Copy link
Member Author

mlncn commented Nov 5, 2024

And now we've caught the anonymous visitor blocks too (same links, but different text).

@mlncn mlncn added 2.x PECE 2.x Release Ready for review Status is work is completed and testing and confirmation needed. labels Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x PECE 2.x Release Ready for review Status is work is completed and testing and confirmation needed.
Projects
None yet
Development

No branches or pull requests

2 participants