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

Peradresavimai #94

Closed
1 task
sirex opened this issue Jun 27, 2022 · 0 comments · Fixed by #132
Closed
1 task

Peradresavimai #94

sirex opened this issue Jun 27, 2022 · 0 comments · Fixed by #132

Comments

@sirex
Copy link
Contributor

sirex commented Jun 27, 2022

Įgyvendintas patikrimas, kai tam tikras duotas URL nerandamas routingo lentelėje, ar toks URL nėra įrašytas į peradresavimų lentelę. Peradresavimų lentelėje nurodyta laikas, kada peradresavimas buvo sukurtas; URL pavadinimas (iš urls.py) iš kurio peradresuojama; URL kelias,object_id, object_type - generic ryšys su objektu į kurį peradresuota (žiūrėti Generic relations.
Modulis: compat.


Tais atvejais, kai tam tikras duotas URL nerandamas routingo lentelėje, reikia patikrinti ar toks URL nėra įrašytas į peradresavimų lentelė.

Peradresavimų lentelėje turi būti tokie laukai:

  • created - laikas, kada peradresavimas buvo sukurtas.
  • name - URL pavadinimas (iš urls.py) iš kurio peradresuojama, pavyzdžiui dataset-details-old.
  • path - URL kelias, pavyzdžiui /dataset/my-dataset.
  • object_id, object_type - generic ryšys su objektu į kurį reikia peradresuoti (žiūrėti Generic relations.

Visi peradresavimai turi būti 308 Permanent Redirect.

  • Jei randamas peradresavimo įrašas, tada tiesiog imamas objektas, pagal object_id ir object_type ir nukreipimas atliekamas į to objekto get_absolute_url.

Modulis: compat.

@adp-atea adp-atea moved this to In Progress in Portalo plėtra Jul 12, 2022
@adp-atea adp-atea moved this from In Progress to Review in Portalo plėtra Aug 25, 2022
@adp-atea adp-atea linked a pull request Aug 25, 2022 that will close this issue
@sirex sirex moved this from Review to Todo in Portalo plėtra Aug 29, 2022
@adp-atea adp-atea moved this from Todo to In Progress in Portalo plėtra Aug 29, 2022
@adp-atea adp-atea moved this from In Progress to Review in Portalo plėtra Aug 30, 2022
@adp-atea adp-atea moved this from Review to In Progress in Portalo plėtra Aug 30, 2022
@adp-atea adp-atea moved this from In Progress to Review in Portalo plėtra Aug 30, 2022
@sirex sirex moved this from Review to Todo in Portalo plėtra Aug 30, 2022
@adp-atea adp-atea moved this from Todo to Review in Portalo plėtra Aug 31, 2022
@sirex sirex moved this from Review to Todo in Portalo plėtra Sep 7, 2022
@adp-atea adp-atea moved this from Todo to Review in Portalo plėtra Sep 7, 2022
@sirex sirex moved this from Review to Done in Portalo plėtra Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant