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

Tags added by banned users are not displayed #9757

Merged
merged 7 commits into from
Jun 9, 2021

Conversation

Manasa2850
Copy link
Member

@Manasa2850 Manasa2850 commented Jun 7, 2021

Part of #9694

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software

Thanks!

@gitpod-io
Copy link

gitpod-io bot commented Jun 7, 2021

@Manasa2850
Copy link
Member Author

@jywarren currently I'm not displaying the tags added by the banned users but they still exist in the database. I've done this because if the admin bans a user by mistake, un-banning them will bring back their tags on the notes page.
Is deleting the tags from the database a better option? Please let me know your views on this.
Thanks!

@codecov
Copy link

codecov bot commented Jun 7, 2021

Codecov Report

❗ No coverage uploaded for pull request base (main@064faa4). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head b8afb6c differs from pull request most recent head 8e72b79. Consider uploading reports for the commit 8e72b79 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9757   +/-   ##
=======================================
  Coverage        ?   49.06%           
=======================================
  Files           ?       98           
  Lines           ?     6114           
  Branches        ?        0           
=======================================
  Hits            ?     3000           
  Misses          ?     3114           
  Partials        ?        0           

@RuthNjeri
Copy link
Contributor

RuthNjeri commented Jun 9, 2021

Hi @Manasa2850, thanks for working on this, maybe you could create a dedicated issue for this? If this PR is merged, it will close the main issue that you are using to plan your work. You could create another one, similar to #9709

Copy link
Contributor

@RuthNjeri RuthNjeri left a comment

Choose a reason for hiding this comment

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

Looks good to me, great work @Manasa2850

@codeclimate
Copy link

codeclimate bot commented Jun 9, 2021

Code Climate has analyzed commit 8e72b79 and detected 0 issues on this pull request.

View more on Code Climate.

@Manasa2850 Manasa2850 requested a review from jywarren June 9, 2021 15:50
@jywarren
Copy link
Member

jywarren commented Jun 9, 2021 via email

Copy link
Member

@pydevsg pydevsg left a comment

Choose a reason for hiding this comment

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

Good work @Manasa2850 🎉

@jywarren jywarren merged commit 471e413 into publiclab:main Jun 9, 2021
@jywarren
Copy link
Member

jywarren commented Jun 9, 2021

Great work everyone, and especially @Manasa2850!!

@Manasa2850 Manasa2850 deleted the banned-user-tags branch June 10, 2021 03:26
reginaalyssa pushed a commit to reginaalyssa/plots2 that referenced this pull request Oct 16, 2021
* tags added by banned users are not displayed

* added deleted change

* fixed undefined method for nil class error

* resolve merge conflict

* fix failing test

* resolve merge conflict
billymoroney1 pushed a commit to billymoroney1/plots2 that referenced this pull request Dec 28, 2021
* tags added by banned users are not displayed

* added deleted change

* fixed undefined method for nil class error

* resolve merge conflict

* fix failing test

* resolve merge conflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants