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

[ENG-6012] Filter out deleted preprints for preprint drafts lists #10731

Conversation

Johnetordoff
Copy link
Contributor

Purpose

The preprint draft list includes deleted preprints, that's a litttle strange, lets fix that.

Changes

  • uses view query for filter out preprints that have been deleted
  • adds test cases

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

Side Effects

Ticket

https://openscience.atlassian.net/browse/ENG-6012

@Johnetordoff Johnetordoff changed the base branch from develop to feature/b-and-i-24-14 August 30, 2024 15:20
@Johnetordoff Johnetordoff marked this pull request as ready for review August 30, 2024 16:56
@brianjgeiger brianjgeiger merged commit 72f5275 into CenterForOpenScience:feature/b-and-i-24-14 Aug 30, 2024
6 checks passed
Johnetordoff pushed a commit to Johnetordoff/osf.io that referenced this pull request Sep 17, 2024
 into feature/insti-dash-improv-merge

* 'develop' of https://github.com/CenterForOpenScience/osf.io: (42 commits)
  Fix task name for clear_expired_sessions in celery schedule
  Update CHANGELOG, bump version
  Revert "Add logging to post-commit handlers"
  filter out deleted preprint drafts (CenterForOpenScience#10731)
  add debugging
  remove debugging
  remove debugging
  Revert "Add logging to post-commit handlers"
  Update commit to warning level
  Update commit to warning level
  Update commit to warning level
  Update commit to warning level
  Add logging to post-commit handlers
  Add logging to post-commit handlers
  revert resend confirmation to synchronous version
  add preprint draft relationship to user
  add PreprintDraftSerializer
  remove command file
  Move notification deletion to a dedicated view and remove obsolete duplicate notification handling logic.
  move duplicate notification handling to node detail page
  ...

# Conflicts:
#	api_tests/institutions/views/test_institution_user_metric_list.py
#	osf_tests/management_commands/test_reindex_es6.py
Johnetordoff pushed a commit to Johnetordoff/osf.io that referenced this pull request Sep 18, 2024
…ForOpenScience/osf.io into new-summary-reports

* 'feature/insti-dash-improv' of https://github.com/CenterForOpenScience/osf.io: (43 commits)
  fix: usable waffle-flag admin
  Fix task name for clear_expired_sessions in celery schedule
  Update CHANGELOG, bump version
  Revert "Add logging to post-commit handlers"
  filter out deleted preprint drafts (CenterForOpenScience#10731)
  add debugging
  remove debugging
  remove debugging
  Revert "Add logging to post-commit handlers"
  Update commit to warning level
  Update commit to warning level
  Update commit to warning level
  Update commit to warning level
  Add logging to post-commit handlers
  Add logging to post-commit handlers
  revert resend confirmation to synchronous version
  add preprint draft relationship to user
  add PreprintDraftSerializer
  remove command file
  Move notification deletion to a dedicated view and remove obsolete duplicate notification handling logic.
  ...
Johnetordoff pushed a commit to Johnetordoff/osf.io that referenced this pull request Sep 18, 2024
…ForOpenScience/osf.io into new-summary-reports

* 'feature/insti-dash-improv' of https://github.com/CenterForOpenScience/osf.io: (43 commits)
  fix: usable waffle-flag admin
  Fix task name for clear_expired_sessions in celery schedule
  Update CHANGELOG, bump version
  Revert "Add logging to post-commit handlers"
  filter out deleted preprint drafts (CenterForOpenScience#10731)
  add debugging
  remove debugging
  remove debugging
  Revert "Add logging to post-commit handlers"
  Update commit to warning level
  Update commit to warning level
  Update commit to warning level
  Update commit to warning level
  Add logging to post-commit handlers
  Add logging to post-commit handlers
  revert resend confirmation to synchronous version
  add preprint draft relationship to user
  add PreprintDraftSerializer
  remove command file
  Move notification deletion to a dedicated view and remove obsolete duplicate notification handling logic.
  ...
uditijmehta pushed a commit to uditijmehta/osf.io that referenced this pull request Oct 4, 2024
## Purpose

The preprint draft list includes deleted preprints, that's a litttle strange, lets fix that.

## Changes

- uses view query for filter out preprints that have been deleted
- adds test cases

Co-authored-by: John Tordoff <>
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