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

[WIP] NodeRequest improvements for Institutional Access Project #239

Draft
wants to merge 40 commits into
base: develop
Choose a base branch
from

Conversation

Johnetordoff
Copy link
Owner

@Johnetordoff Johnetordoff commented Dec 2, 2024

Purpose

This feature should allow institutional admins to request a specific project and message a specific user via email with a custom message, the permission should appear as the default selected on the contributor page. This is to be done by expanding the capabilities of the NodeRequest object to allow for this behavior via the current project "Request Access" system

Changes

  • Split-up requests tests between node and preprint requests to keep file sizes normal
  • added NodeRequestTypes for a new request type INSTITUTIONAL_REQUESTS
  • added to_internal_value to serializer to fix relationshipFields
  • added InstitutionalAdminRequestTypePermission to handle new request_type.
  • adds new email template
  • added requested_permissions to NodeRequestSerializer
  • add tests

QA Notes

Please make verification statements inspired by your code and what your code touches.

  • Verify
  • Verify

What are the areas of risk?

Any concerns/considerations/questions that development raised?

Documentation

No docs for NodeRequest features.

Side Effects

Ticket

Johnetordoff and others added 6 commits November 15, 2024 13:35
* add management command to migrate preprint affiliations

* make sure migrations uses primary instead of replica, improve tests

* remove redundant permission

---------

Co-authored-by: John Tordoff <>
…penScience#10783)

* Add OOPSpam and Akismet metrics to spam report

* Add spam/ham metrics for OOPSpam and Akismet with FK join fix, test cleanup

* Add private spam metrics report with preprint inclusion

* Validate category; add PrivateSpamMetricsReporter to monthly reports

---------

Co-authored-by: Uditi Mehta <[email protected]>
prevent counted-usages with different `action_labels` from overwriting
each other -- deduplicate only when `action_labels` match exactly
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch from 3d4de6c to 52aac9f Compare December 2, 2024 19:52
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch from 52aac9f to 92b1da4 Compare December 2, 2024 20:46
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch 2 times, most recently from d77d7c4 to f170de4 Compare December 2, 2024 21:34
@Johnetordoff Johnetordoff changed the title add NodeRequest improvements for Institutional Access project [POC] NodeRequest improvements for Institutional Access Project Dec 2, 2024
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch 6 times, most recently from e3ce081 to 7f351f3 Compare December 4, 2024 17:04
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch from 7f351f3 to c8c6264 Compare December 4, 2024 18:04
required=False,
)

def to_internal_value(self, data):
Copy link
Owner Author

Choose a reason for hiding this comment

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

Figure out the mystery

@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch 4 times, most recently from ee0d82d to 52dae76 Compare December 4, 2024 21:00
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch from 52dae76 to b0ba9d4 Compare December 4, 2024 21:15
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch from af18d95 to 011b708 Compare December 10, 2024 14:23
John Tordoff and others added 7 commits December 10, 2024 09:59
…tutional-access-user-message

[ENG-6682] Add UserMessage feature for Institutional Access
…terForOpenScience/osf.io into institutional-access-user-message-arb

* 'feature/institutional_access' of https://github.com/CenterForOpenScience/osf.io:
  add user message read/write permissions to full
  add new user message oauth scope and throttling classes
  Fix backfill, report
  Update changelog and bump versions
  Follow-up fix for target/next (start/end) month
  Fix failures caused by base class MonthlyReporter update
  [ENG-6506] Fix: counted-usage clobbers (CenterForOpenScience#10799)
  [ENG-6435] Fix: duplicate reports when run for past years (CenterForOpenScience#10800)
  Add PrivateSpamMetricsReport (CenterForOpenScience#10791)
  [ENG-4438] Add OOPSpam and Akismet metrics to spam report (CenterForOpenScience#10783)
  [ENG-6364] Migrate Preprint Affilations (CenterForOpenScience#10787)
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch from 011b708 to 30f4336 Compare December 12, 2024 17:17
…tutional-access-user-message-arb

[ENG-6682] Add reply-to and cc-ing features to Institutional Access
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch 5 times, most recently from bc9e548 to d32cc2d Compare December 12, 2024 19:37
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch from d32cc2d to b7405af Compare December 12, 2024 19:45
John Tordoff added 2 commits December 12, 2024 14:47
…terForOpenScience/osf.io into institutional-access-node-request-improvements

* 'feature/institutional_access' of https://github.com/CenterForOpenScience/osf.io:
  change to bcc the sender instead of CC-ing them
  revert typo
  add code to allow cc-ing fellow institutional admins and put their own address as a reply_to

# Conflicts:
#	osf/migrations/0025_noderequest_requested_permissions_and_more.py
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch from a209a8c to 7359973 Compare December 12, 2024 21:37
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch from 5cc90b9 to d8abf97 Compare December 13, 2024 19:24
@Johnetordoff Johnetordoff force-pushed the institutional-access-node-request-improvements branch from d8abf97 to e34b928 Compare December 13, 2024 19:30
John Tordoff added 2 commits December 16, 2024 11:30
…e request access is turned off and added test case
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.

5 participants