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

More limits (Plan B) #1629

Merged
merged 1 commit into from
Jun 28, 2019
Merged

More limits (Plan B) #1629

merged 1 commit into from
Jun 28, 2019

Conversation

Martii
Copy link
Member

@Martii Martii commented Jun 28, 2019

  • Limit a few more things to possibly curtail some 431's
  • Ease up on MongoDB having issues with script querying and CPU load. Limit to first copied block of characters in about. This amount may get smaller and is currently in flux.
  • Create new clipped searchable fields. I spent a lot of time to see if MongoDB/mongoose had a limiter on their indexer and couldn't find one so we get to do it manually.

NOTE:

  • This will temporarily remove everyone's Summary but it will be manually migrated in the DB in a while. If you are impatient... edit your script (no changes necessary) and resave it... that will do the migration also.

Post #1628 and applies to #1548

* Limit a few more things to possibly curtail some 431's
* Ease up on MongoDB having issues with script querying and CPU load. Limit to first copied block of characters in `about`. This amount may get smaller and is currently in flux.
* Create new clipped searchable fields. I spent a lot of time to see if MongoDB/*mongoose* had a limiter on their indexer and couldn't find one so we get to do it manually.

NOTE:
* This will temporarily remove everyone's Summary but it will be manually migrated in the DB in a while. If you are impatient... edit your script *(no changes necessary)* and resave it... that will do the migration also.

Post OpenUserJS#1628 and applies to OpenUserJS#1548
@Martii Martii added migration Use this to indicate that it may apply to an existing or announced migration. CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. stability Important to operations. labels Jun 28, 2019
@Martii Martii merged commit 1923b57 into OpenUserJS:master Jun 28, 2019
@Martii Martii deleted the moreLimits branch June 28, 2019 05:25
@Martii Martii added the DB Pertains inclusively to the Database operations. label Jun 28, 2019
Martii added a commit to Martii/OpenUserJS.org that referenced this pull request Jun 29, 2019
* Some new deps
* This removes the HTML and MD from the `about` and stores in the limited `_about`.
* Still currently testing 1KiB term max *(combined)*
* Change default typing on `_description` to empty string.

NOTES:
* This could also be achieved with *marked* and *sanitize-html* however giving this a whirl for source isolation.

Post OpenUserJS#1629 and applies to OpenUserJS#1548
Martii added a commit that referenced this pull request Jun 29, 2019
* Some new deps
* This removes the HTML and MD from the `about` and stores in the limited `_about`.
* Still currently testing 1KiB term max *(combined)*
* Change default typing on `_description` to empty string.

NOTES:
* This could also be achieved with *marked* and *sanitize-html* however giving this a whirl for source isolation.

Post #1629 and applies to #1548

Auto-merge
Martii added a commit to Martii/OpenUserJS.org that referenced this pull request Jun 30, 2019
* Put in env var check for limiting problem query

Post OpenUserJS#1629 and applies to OpenUserJS#1548
@Martii Martii mentioned this pull request Jun 30, 2019
Martii added a commit that referenced this pull request Jun 30, 2019
* Put in env var check for limiting problem query

Post #1629 and applies to #1548

Auto-merge
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. DB Pertains inclusively to the Database operations. migration Use this to indicate that it may apply to an existing or announced migration. stability Important to operations.
Development

Successfully merging this pull request may close these issues.

1 participant