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

Pasikeitusių nuorodų peradresavimas #144

Closed
sirex opened this issue Sep 9, 2022 · 4 comments · Fixed by #656 or #671
Closed

Pasikeitusių nuorodų peradresavimas #144

sirex opened this issue Sep 9, 2022 · 4 comments · Fixed by #656 or #671
Assignees
Milestone

Comments

@sirex
Copy link
Contributor

sirex commented Sep 9, 2022

Įgyvendintas pasikeitusių nuorodų peradresavimas, kad portalo naudotojai išsisaugoję senas nuorodas, patektų ten, kur nuorodos vesdavo anksčiau.


Reikia peržiūrėti esamas nuorodas data.gov.lt ir test.data.gov.lt svetainėse ir padaryti peradresavimus, taip, kad senos nuorodos veiktų, jei senos nuorodos keitėsi, tada reikia peradresuoti į naują vietą.

Pavyzdžiai:

  • /usecases/examples -> /projects/
  • /usecases/applications -> /projects/
  • /usecase -> /projects/add/
  • /dataset/<slug>/ -> /datasets/<id>/
  • ...

Taip pat reikėtų pataisyti nuorodas, kurios neatitinka standartinės formos:

  • /requests/ - sąrašas visų objektų
  • /requests/add/ - naujo objekto pridėjimas
  • /requests/<id>/ - vieno objekto peržiūra
  • /requests/<id>/update/ - objekto forma
  • /requests/<id>/remove/ - objekto trynimas
  • /requests/<id>/orgs/ - susijusių objektų peržiūra

Epic

Susiję

Resursai

@sirex sirex added this to Palaikymas Mar 6, 2023
@sirex sirex added this to the Paleidimas milestone Mar 6, 2023
@sirex sirex changed the title Create redirects for moved pages Pasikeitusių nuorodų peradresavimas Mar 6, 2023
@Faustasm Faustasm self-assigned this Mar 9, 2023
@Faustasm Faustasm moved this to Work in Palaikymas Mar 9, 2023
@Faustasm Faustasm linked a pull request Mar 14, 2023 that will close this issue
@Faustasm Faustasm moved this from Work to Review in Palaikymas Mar 14, 2023
@Faustasm Faustasm assigned sirex and unassigned Faustasm Mar 14, 2023
@sirex
Copy link
Contributor Author

sirex commented Mar 24, 2023

Radau tokias nuorodas internetuose: https://data.gov.lt/datasets?q=&organization_id=50

Jei jos neperadresuojamos, tai reikėtų peradresuoti.

@sirex sirex removed the status in Palaikymas May 11, 2023
@sirex sirex assigned Faustasm and unassigned sirex Aug 28, 2023
@Faustasm Faustasm moved this to Work in Palaikymas Aug 31, 2023
@Faustasm Faustasm linked a pull request Sep 20, 2023 that will close this issue
@Faustasm
Copy link
Contributor

Radau tokias nuorodas internetuose: https://data.gov.lt/datasets?q=&organization_id=50

Jei jos neperadresuojamos, tai reikėtų peradresuoti.

Su redirect objektu query parametrų dinamiškai paduoti negalima, jei norim perdaryt query parametrus reikia panaudot šį kodą nebent žinai kita būdą. https://github.com/atviriduomenys/katalogas/pull/287/files#diff-bf7ad6e1030637bc24e43ef82abdfe879984529f4239e1c7bb5a51b8787056a3R77

@github-project-automation github-project-automation bot moved this from Work to Done in Palaikymas Sep 20, 2023
@Faustasm Faustasm reopened this Sep 20, 2023
@Faustasm Faustasm moved this from Done to Deploy in Palaikymas Sep 20, 2023
@sirex sirex moved this from Deploy to Done in Palaikymas Sep 29, 2023
@sirex
Copy link
Contributor Author

sirex commented Oct 6, 2023

Peradresavimasv is dar neveikia:

https://data.gov.lt/datasets?q=&organization_id=269 pakeitus į test.data.gov.lt nepakeičia URL.

https://data.gov.lt/dataset/atviru-duomenu-katalogo-api pakeitus į test.data.gov.lt nepakeičia URL.

@sirex sirex removed the status in Palaikymas Oct 6, 2023
@Faustasm Faustasm moved this to Work in Palaikymas Oct 9, 2023
@Faustasm Faustasm moved this from Work to Review in Palaikymas Oct 12, 2023
@Faustasm Faustasm linked a pull request Oct 12, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this from Review to Done in Palaikymas Oct 12, 2023
@Faustasm Faustasm reopened this Oct 12, 2023
@Faustasm Faustasm moved this from Done to Deploy in Palaikymas Oct 12, 2023
@sirex sirex moved this from Deploy to Test in Palaikymas Oct 12, 2023
@sirex
Copy link
Contributor Author

sirex commented Oct 12, 2023

Klaidingai peradresuoja šiuos URL:

senas naujas (teisingas)
https://data.gov.lt/datasets?q=&organization_id=269 https://test.data.gov.lt/orgs/269/datasets/?selected_facets=organization_exact:269
https://data.gov.lt/requests/2b6f55f8-cbc9-4e77-a4e8-31c21da12420 https://test.data.gov.lt/requests/194/

@sirex sirex removed the status in Palaikymas Oct 12, 2023
@Faustasm Faustasm moved this to Work in Palaikymas Oct 16, 2023
@Faustasm Faustasm moved this from Work to Review in Palaikymas Oct 20, 2023
@sirex sirex moved this from Review to Deploy in Palaikymas Oct 20, 2023
@sirex sirex linked a pull request Oct 20, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this from Deploy to Done in Palaikymas Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
2 participants