[go: nahoru, domu]

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

✨Site config meta #2516

Merged
merged 2 commits into from
Nov 28, 2023
Merged

✨Site config meta #2516

merged 2 commits into from
Nov 28, 2023

Conversation

AntoLC
Copy link
Contributor
@AntoLC AntoLC commented Nov 27, 2023

Purpose

When we created a site, it was still the meta of the default website that was displayed.

Proposal

  • (backend) Create 2 new fields, meta_description and meta_title in site_config
  • (frontend) set the meta_description and meta_title in the site if available

@AntoLC AntoLC self-assigned this Nov 27, 2023
@AntoLC AntoLC force-pushed the feature/anthony/site-config-meta branch 2 times, most recently from 99eab28 to 128d79b Compare November 27, 2023 15:17
@AntoLC AntoLC marked this pull request as ready for review November 27, 2023 15:25
meta_title = models.TextField(
verbose_name=_("meta title"),
help_text=_("The meta title of the site"),
default="Marsha",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
default="Marsha",
null=True,
blank=True,

IMO no default should be added and the field must be null

meta_description = models.TextField(
verbose_name=_("meta description"),
help_text=_("The meta description of the site"),
default="Marsha",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
default="Marsha",
null=True,
blank=True,

Copy link
Contributor Author
@AntoLC AntoLC Nov 28, 2023

Choose a reason for hiding this comment

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

@AntoLC AntoLC requested a review from lunika November 28, 2023 09:10
@AntoLC AntoLC force-pushed the feature/anthony/site-config-meta branch from b1b4e7a to 0977785 Compare November 28, 2023 10:32
@AntoLC AntoLC force-pushed the feature/anthony/site-config-meta branch from 0977785 to 1e5d8be Compare November 28, 2023 17:03
We can now personalize the meta title and description per site.
Add the fields to the site config model and add them to the config
API.
If the site config has a meta title and description, we use it for the
site. Otherwise, we use the default values.
@AntoLC AntoLC force-pushed the feature/anthony/site-config-meta branch from 1e5d8be to 0a6cff3 Compare November 28, 2023 17:04
@AntoLC AntoLC enabled auto-merge (rebase) November 28, 2023 17:04
@AntoLC AntoLC merged commit d9c3284 into master Nov 28, 2023
34 checks passed
@AntoLC AntoLC deleted the feature/anthony/site-config-meta branch November 28, 2023 17:18
lunika added a commit that referenced this pull request Nov 29, 2023
Added

- Meta description and meta title on the website from the API (#2516)
- Retrieve BBB learning analytics and send them through API
- Classroom attendance analytics (#2499)
- Add a language picker for the invite link on the website (#2504)

Changed

- Replace grommet DropButton component (#2513)
- On live, can now share resource when one is already shared (#2512)
- Remove persistency on token from invite link (#2505)
- Replace grommet Cards / Footer/ Anchor / Tip / Nav (#2503)
- Refacto widgets SharedLiveMedia (#2504)
- Replace grommet Button (#2453)
- Replace grommet Box (#2484)
- Replace grommet TextArea (#2500)
- Update psycopg to version 3
- Update node to version 20
- Replace pylti with oauthlib for LTI request validation
- Replace faker with @faker-js/faker (frontend)

Fixed

- Blocking error when shared document is deleted (#2504)
- Improve render sharing picture in live (#2508)
lunika added a commit that referenced this pull request Nov 29, 2023
Added

- Meta description and meta title on the website from the API (#2516)
- Retrieve BBB learning analytics and send them through API
- Classroom attendance analytics (#2499)
- Add a language picker for the invite link on the website (#2504)

Changed

- Replace grommet DropButton component (#2513)
- On live, can now share resource when one is already shared (#2512)
- Remove persistency on token from invite link (#2505)
- Replace grommet Cards / Footer/ Anchor / Tip / Nav (#2503)
- Refacto widgets SharedLiveMedia (#2504)
- Replace grommet Button (#2453)
- Replace grommet Box (#2484)
- Replace grommet TextArea (#2500)
- Update psycopg to version 3
- Update node to version 20
- Replace pylti with oauthlib for LTI request validation
- Replace faker with @faker-js/faker (frontend)

Fixed

- Blocking error when shared document is deleted (#2504)
- Improve render sharing picture in live (#2508)
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.

None yet

3 participants