Skip to content

fix(report-tag): only count open reports toward the limit - #562

Open
Dx-Alz-xD wants to merge 1 commit into
CodeChefVIT:stagingfrom
Dx-Alz-xD:krish/report-limit-open-only
Open

Dx-Alz-xD wants to merge 1 commit into
CodeChefVIT:stagingfrom
Dx-Alz-xD:krish/report-limit-open-only

Conversation

@Dx-Alz-xD

Copy link
Copy Markdown

📌 Purpose

The 5-report cap counted resolved reports too, so once a paper had 5 reports nobody could ever report it again, even after they were fixed.


Corresponding issue: closes #555


🖼️ Showcase

  • Paper with 5 resolved reports: 429 -> r01
  • Paper with 5 open reports: still 429

🔧 Changes

  • reportTag counts with { paperId, resolved: { $ne: true } }

➕ Additional Notes

  • $ne: true also counts older reports saved before resolved existed

the five report cap counted resolved reports too, so once a paper had
five reports nobody could report it again even after they were fixed

This branch has not been deployed

No deployments
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.

Report tag limit counts resolved reports, so a paper can't be reported again after 5

1 participant