-
Notifications
You must be signed in to change notification settings - Fork 9
[OSDEV-1117] Contribution record integration #454
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
Merged
VadimKovalenkoSNF
merged 60 commits into
main
from
OSDEV-1117-contribution-record-integration
Jan 9, 2025
Merged
Changes from 57 commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
50748c2
Update moderation events naming
VadimKovalenkoSNF 4f02341
Apply getting single moderation event
VadimKovalenkoSNF c265203
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF 6743cd4
Minor post-merge fix
VadimKovalenkoSNF 00794c4
Apply potential match search
VadimKovalenkoSNF 0566b50
Refactory completeFetchingPotentialMatches reducer
VadimKovalenkoSNF 8e02734
Refactory routing to moderation record
VadimKovalenkoSNF feff7b8
Refactor claim button styles and appearance
VadimKovalenkoSNF b33e7d3
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF 219b0cf
Minor style update
VadimKovalenkoSNF f0c1cb3
Refactor naming, apply status toolbar and style refactoring
VadimKovalenkoSNF e1a4352
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF a2abec2
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF d7ca8ee
Implement Reject action, refactor claim button
VadimKovalenkoSNF 60d1b8f
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF 32f7402
Integrate POST production location from mmoderation event
VadimKovalenkoSNF 517b942
Apply signal for modertion event change
VadimKovalenkoSNF 2fb6232
Apply toastify (partial impl)
VadimKovalenkoSNF 7deb327
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF 9770572
Minor refactoring, add render condition while making request
VadimKovalenkoSNF c52ddc1
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF 019db55
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF 77fcbf5
Finish confirmPotentialMatchFromModerationEvent action
VadimKovalenkoSNF fa5f868
Refactor moderation event statuses using constants
VadimKovalenkoSNF ed4f53b
Wrap confirm button with the tooltip
VadimKovalenkoSNF 54f1386
Add Backdrop component on moderation event update
VadimKovalenkoSNF 4edb789
Fix flake8 issues
VadimKovalenkoSNF 7eccc8d
Add OS ID link, higlight confirmed match
VadimKovalenkoSNF fc49fae
Minor test improvements (partila impl)
VadimKovalenkoSNF 31c9a54
Update FE tests
VadimKovalenkoSNF 6c55356
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF df582fc
Add proptypes
VadimKovalenkoSNF e5ebcc4
Fix DashboardModerationQueueListTable.test.js
VadimKovalenkoSNF 9e02130
Fix lint issues
VadimKovalenkoSNF ac38da5
Add BE tests (partial impl)
VadimKovalenkoSNF 6b41fce
Update test suite
VadimKovalenkoSNF 9e3370c
Update integration tests
VadimKovalenkoSNF 69fe5e2
Fix flake8 issues
VadimKovalenkoSNF 311254c
Reduce integration ticket scope
VadimKovalenkoSNF acb6351
Update Release notes
VadimKovalenkoSNF d15ae46
Omit rate limiter test
VadimKovalenkoSNF 7b0acf1
Revert make_token file
VadimKovalenkoSNF 6e5fa44
Remove integration test
VadimKovalenkoSNF 8e17399
Disable signal propagation to unit tests
VadimKovalenkoSNF bdb7bae
Bring back first part of integration test
VadimKovalenkoSNF 181a5b5
Upd made token file
VadimKovalenkoSNF 278de27
Extend integration tests
VadimKovalenkoSNF e83ca42
Minor test update
VadimKovalenkoSNF 3e65e21
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF 000ebb2
Update DashboardModerationQueueListTable test suite
VadimKovalenkoSNF 1846009
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF 6a23c67
Minor refactoring of integration test
VadimKovalenkoSNF cab8a47
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF f3d5c83
Remove redundant logs, update release notes
VadimKovalenkoSNF 74c3a43
Move release notes to v.1.28.0
VadimKovalenkoSNF 01bdfdc
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF c94cce8
Upd release notes
VadimKovalenkoSNF 96d06f2
Merge branch 'main' into OSDEV-1117-contribution-record-integration
VadimKovalenkoSNF e82282e
Remove async keyword, fix proptypes for TooltipDialog, remove redunda…
VadimKovalenkoSNF 5ea1f43
Remove redundant shouldDisabledWhileRequest state prop
VadimKovalenkoSNF File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,13 +4,21 @@ | |
|
|
||
| class Command(BaseCommand): | ||
| help = ('Usage: Create an API token for the user during the database ' | ||
| 'reset.') | ||
| 'reset, and set admin rights.') | ||
|
|
||
| def handle(self, *args, **options): | ||
| call_command('shell', | ||
| '-c', | ||
| ("from rest_framework.authtoken.models import Token; " | ||
| "from api.models import User; token = " | ||
| "Token.objects.create(user=User.objects.get(id=2)," | ||
| "key='1d18b962d6f976b0b7e8fcf9fcc39b56cf278051'); " | ||
| "print('Token for [email protected]'); print(token)")) | ||
| call_command( | ||
| 'shell', | ||
| '-c', | ||
| ( | ||
| "from rest_framework.authtoken.models import Token;" | ||
| "from api.models import User;" | ||
| "user = User.objects.get(id=2);" | ||
| "user.is_staff = True;" | ||
| "user.is_superuser = True;" | ||
| "user.save();" | ||
| "token = Token.objects.create(user=user," | ||
| "key='1d18b962d6f976b0b7e8fcf9fcc39b56cf278051');" | ||
| "print(f'Token for {user.email}: {token.key}')" | ||
Innavin369 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ) | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| from django.test import override_settings | ||
| from django.utils.timezone import now | ||
| from django.db.models.signals import post_save | ||
|
|
||
| from rest_framework.test import APITestCase | ||
|
|
||
|
|
@@ -10,11 +11,20 @@ | |
| from api.models.nonstandard_field import NonstandardField | ||
| from api.models.source import Source | ||
|
|
||
| from api.signals import moderation_event_update_handler_for_opensearch | ||
|
|
||
|
|
||
| @override_settings(DEBUG=True) | ||
| class BaseModerationEventsProductionLocationTest(APITestCase): | ||
| def setUp(self): | ||
| super().setUp() | ||
| # Disconnect moderation event save propagation to | ||
| # OpenSearch cluster, as it is outside the scope | ||
| # of Django unit testing. | ||
| post_save.disconnect( | ||
| moderation_event_update_handler_for_opensearch, | ||
| ModerationEvent | ||
| ) | ||
|
|
||
| self.email = "[email protected]" | ||
| self.password = "example123" | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.