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

feat(wiki): add WikiSiteStats model #632

Merged
merged 4 commits into from
Aug 22, 2023
Merged

feat(wiki): add WikiSiteStats model #632

merged 4 commits into from
Aug 22, 2023

Conversation

m90
Copy link
Contributor

@m90 m90 commented Aug 21, 2023

Ticket https://phabricator.wikimedia.org/T344580

This PR intentionally does not create any records based on the newly introduced model yet. Right now, when querying for a wiki and including the wikiSiteStats relation, it would just return null.

@m90 m90 marked this pull request as ready for review August 21, 2023 14:11
});

Schema::table('wikis', function (Blueprint $table) {
$table->text('description')->nullable();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is limited to 64kb of text, which I guess is ok. longText could store 4GB of text which might be a bit too long for a snappy description.

@m90 m90 mentioned this pull request Aug 22, 2023
@m90 m90 merged commit 62f47d5 into main Aug 22, 2023
5 checks passed
@m90 m90 deleted the fr/site-stats branch August 22, 2023 08:39
deer-wmde pushed a commit that referenced this pull request Aug 22, 2023
* feat(wiki): add WikiSiteStats model

* fix(migrations): string field is too limited for storing description

* fix: make new wiki fields fillable

* docs: update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants