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

Bump pymongo from 4.7.2 to 4.11.2 #109

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -4,6 +4,6 @@ requests==2.20.0
gunicorn==22.0.0
gevent==24.2.1
cachetools==2.1.0
pymongo==4.7.2
pymongo==4.11.2
redis==2.10.6
flask-cors==3.0.6

Unchanged files with check annotations Beta

# autogenerated from the info above.
if not isinstance(params, dict):
raise IllegalParameterError('Expected a JSON object as an input.')

Check failure on line 34 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-3.6.2)

Expected a JSON object as an input.

Check failure on line 34 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-ubuntu2204-7.0.4)

Expected a JSON object as an input.
required_list = ['verb', 'level']
if not is_global:
required_list = required_list + ['actor', 'source', 'object']
The whole thing's gotta be a JSON object.
"""
if not isinstance(params, dict):
raise IllegalParameterError('Expected a JSON object as an input.')

Check failure on line 77 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-ubuntu2204-7.0.4)

Expected a JSON object as an input.
if 'source' not in params or params.get('source') is None:
if not is_admin:
raise MissingParameterError('Missing parameter "source"')

Check failure on line 81 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-3.6.2)

Missing parameter "source"
if 'note_ids' not in params and 'external_keys' not in params:
raise MissingParameterError('Missing parameter "note_ids" or "external_keys"')

Check failure on line 84 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-ubuntu2204-7.0.4)

Missing parameter "note_ids" or "external_keys"
if not isinstance(params.get('note_ids', []), list):
raise IllegalParameterError('Expected note_ids to be a list.')

Check failure on line 87 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-3.6.2)

Expected note_ids to be a list.

Check failure on line 87 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-ubuntu2204-7.0.4)

Expected note_ids to be a list.
else:
for i in params.get('note_ids', []):
if not isinstance(i, str):
raise IllegalParameterError('note_ids must be a list of strings')

Check failure on line 91 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-3.6.2)

note_ids must be a list of strings

Check failure on line 91 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-3.6.2)

note_ids must be a list of strings

Check failure on line 91 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-ubuntu2204-7.0.4)

note_ids must be a list of strings

Check failure on line 91 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-ubuntu2204-7.0.4)

note_ids must be a list of strings
if not isinstance(params.get('external_keys', []), list):
raise IllegalParameterError('Expected external_keys to be a list.')

Check failure on line 94 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-3.6.2)

Expected external_keys to be a list.

Check failure on line 94 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-ubuntu2204-7.0.4)

Expected external_keys to be a list.
else:
for i in params.get('external_keys', []):
if not isinstance(i, str):
raise IllegalParameterError('external_keys must be a list of strings')

Check failure on line 98 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-3.6.2)

external_keys must be a list of strings

Check failure on line 98 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-3.6.2)

external_keys must be a list of strings

Check failure on line 98 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-ubuntu2204-7.0.4)

external_keys must be a list of strings

Check failure on line 98 in feeds/api/util.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-ubuntu2204-7.0.4)

external_keys must be a list of strings
if is_admin:
if len(params.get("external_keys", [])) and not isinstance(params.get("source"), str):
def _get_mark_notification_params(params):
if not isinstance(params, dict):
raise IllegalParameterError('Expected a JSON object as an input.')

Check failure on line 338 in feeds/api/api_v1.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-3.6.2)

Expected a JSON object as an input.

Check failure on line 338 in feeds/api/api_v1.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-ubuntu2204-7.0.4)

Expected a JSON object as an input.
if 'note_ids' not in params:
raise MissingParameterError("Missing parameter note_ids")
if not isinstance(params.get('note_ids'), list):
raise IllegalParameterError('Expected a List object as note_ids.')

Check failure on line 344 in feeds/api/api_v1.py

GitHub Actions / feeds_tests (3.9.19, mongodb-linux-x86_64-3.6.2)

Expected a List object as note_ids.
return params