fedora-infra / anitya

A cross-distribution upstream release monitoring project
https://release-monitoring.org
GNU General Public License v2.0
246 stars 104 forks source link

[Feature] Allow admins to delete users from db #1735

Closed Freedisch closed 6 months ago

Freedisch commented 6 months ago

Description

This PR fixes issue #931 This PR introduces a new delete button to users on user management page, allowing admin to delete users

Demo

https://github.com/fedora-infra/anitya/assets/82499435/91ed7726-6dac-42a7-9bdc-7ec6d360e6b5

softwarefactory-project-zuul[bot] commented 6 months ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/e75660acdecf4e61af0991b8b8fcd8b0

:heavy_check_mark: fi-tox-mypy SUCCESS in 5m 40s :heavy_check_mark: fi-tox-lint SUCCESS in 6m 52s :heavy_check_mark: fi-tox-format SUCCESS in 5m 49s :heavy_check_mark: fi-tox-python38 SUCCESS in 10m 50s :heavy_check_mark: fi-tox-python39 SUCCESS in 9m 37s :heavy_check_mark: fi-tox-python310 SUCCESS in 10m 49s :heavy_check_mark: fi-tox-python311 SUCCESS in 9m 51s :x: fi-tox-docs FAILURE in 7m 46s :heavy_check_mark: fi-tox-bandit SUCCESS in 4m 53s :x: fi-tox-diff-cover FAILURE in 10m 42s

Freedisch commented 6 months ago

I'm taking care of the failing CI

Zlopez commented 6 months ago

I will wait till CI will be fixed, but the PR looks good :+1:

softwarefactory-project-zuul[bot] commented 6 months ago

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. Warning: Error merging github.com/fedora-infra/anitya for 1735,b6a16e96207a257f977a8de82141dd1347a58fc1

softwarefactory-project-zuul[bot] commented 6 months ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/bdd1448fd1e2484fa024dcf3356223ba

:heavy_check_mark: fi-tox-mypy SUCCESS in 7m 14s :heavy_check_mark: fi-tox-lint SUCCESS in 6m 32s :heavy_check_mark: fi-tox-format SUCCESS in 6m 31s :heavy_check_mark: fi-tox-python38 SUCCESS in 11m 03s :heavy_check_mark: fi-tox-python39 SUCCESS in 9m 41s :heavy_check_mark: fi-tox-python310 SUCCESS in 10m 47s :heavy_check_mark: fi-tox-python311 SUCCESS in 10m 34s :heavy_check_mark: fi-tox-docs SUCCESS in 7m 55s :heavy_check_mark: fi-tox-bandit SUCCESS in 5m 22s :x: fi-tox-diff-cover FAILURE in 11m 38s

softwarefactory-project-zuul[bot] commented 6 months ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/a451d100ef8a432d8a6c2c48d57f3f0e

:heavy_check_mark: fi-tox-mypy SUCCESS in 7m 33s :heavy_check_mark: fi-tox-lint SUCCESS in 5m 01s :heavy_check_mark: fi-tox-format SUCCESS in 5m 54s :x: fi-tox-python38 FAILURE in 9m 12s :x: fi-tox-python39 FAILURE in 10m 15s :x: fi-tox-python310 FAILURE in 11m 35s :x: fi-tox-python311 FAILURE in 9m 15s :heavy_check_mark: fi-tox-docs SUCCESS in 7m 26s :heavy_check_mark: fi-tox-bandit SUCCESS in 6m 53s :x: fi-tox-diff-cover FAILURE in 10m 15s

softwarefactory-project-zuul[bot] commented 6 months ago

Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/5c4ebbd575ad4849a7aa6c37c7c1a1e5

:heavy_check_mark: fi-tox-mypy SUCCESS in 6m 53s :heavy_check_mark: fi-tox-lint SUCCESS in 6m 26s :heavy_check_mark: fi-tox-format SUCCESS in 4m 43s :heavy_check_mark: fi-tox-python38 SUCCESS in 10m 48s :heavy_check_mark: fi-tox-python39 SUCCESS in 9m 05s :heavy_check_mark: fi-tox-python310 SUCCESS in 10m 23s :heavy_check_mark: fi-tox-python311 SUCCESS in 8m 49s :heavy_check_mark: fi-tox-docs SUCCESS in 7m 38s :heavy_check_mark: fi-tox-bandit SUCCESS in 6m 22s :heavy_check_mark: fi-tox-diff-cover SUCCESS in 11m 07s

Freedisch commented 6 months ago

@Zlopez, I fixed the failing CIs, This PR is now ready for review

softwarefactory-project-zuul[bot] commented 6 months ago

Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/69494257851249b78b9f6afed58f3812

:heavy_check_mark: fi-tox-mypy SUCCESS in 7m 32s :heavy_check_mark: fi-tox-lint SUCCESS in 6m 04s :heavy_check_mark: fi-tox-format SUCCESS in 4m 44s :heavy_check_mark: fi-tox-python38 SUCCESS in 11m 14s :heavy_check_mark: fi-tox-python39 SUCCESS in 10m 59s :heavy_check_mark: fi-tox-python310 SUCCESS in 10m 59s :heavy_check_mark: fi-tox-python311 SUCCESS in 8m 29s :heavy_check_mark: fi-tox-docs SUCCESS in 8m 52s :heavy_check_mark: fi-tox-bandit SUCCESS in 6m 53s :heavy_check_mark: fi-tox-diff-cover SUCCESS in 12m 04s

Zlopez commented 6 months ago

I also noticed that the news file is missing.

softwarefactory-project-zuul[bot] commented 6 months ago

Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/b08baf4d6f2e4d6f88aa1022289c445a

:heavy_check_mark: fi-tox-mypy SUCCESS in 5m 54s :heavy_check_mark: fi-tox-lint SUCCESS in 4m 57s :heavy_check_mark: fi-tox-format SUCCESS in 5m 34s :heavy_check_mark: fi-tox-python38 SUCCESS in 9m 55s :heavy_check_mark: fi-tox-python39 SUCCESS in 9m 29s :heavy_check_mark: fi-tox-python310 SUCCESS in 10m 18s :heavy_check_mark: fi-tox-python311 SUCCESS in 10m 12s :heavy_check_mark: fi-tox-docs SUCCESS in 7m 12s :heavy_check_mark: fi-tox-bandit SUCCESS in 6m 24s :heavy_check_mark: fi-tox-diff-cover SUCCESS in 10m 36s

softwarefactory-project-zuul[bot] commented 6 months ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/88f6065e2ef843a48cb786680a3a6e4b

:heavy_check_mark: fi-tox-mypy SUCCESS in 6m 27s :heavy_check_mark: fi-tox-lint SUCCESS in 5m 30s :heavy_check_mark: fi-tox-format SUCCESS in 5m 40s :heavy_check_mark: fi-tox-python38 SUCCESS in 8m 56s :heavy_check_mark: fi-tox-python39 SUCCESS in 8m 42s :heavy_check_mark: fi-tox-python310 SUCCESS in 9m 41s :heavy_check_mark: fi-tox-python311 SUCCESS in 9m 22s :heavy_check_mark: fi-tox-docs SUCCESS in 7m 22s :heavy_check_mark: fi-tox-bandit SUCCESS in 5m 31s :x: fi-tox-diff-cover FAILURE in 10m 16s

softwarefactory-project-zuul[bot] commented 6 months ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci https://fedora.softwarefactory-project.io/zuul/buildset/b0902907209b4e7a9be71cef40ac04bc

:heavy_check_mark: fi-tox-mypy SUCCESS in 5m 26s :heavy_check_mark: fi-tox-lint SUCCESS in 5m 09s :heavy_check_mark: fi-tox-format SUCCESS in 5m 15s :heavy_check_mark: fi-tox-python38 SUCCESS in 9m 16s :heavy_check_mark: fi-tox-python39 SUCCESS in 9m 07s :heavy_check_mark: fi-tox-python310 SUCCESS in 9m 13s :heavy_check_mark: fi-tox-python311 SUCCESS in 8m 59s :heavy_check_mark: fi-tox-docs SUCCESS in 6m 55s :heavy_check_mark: fi-tox-bandit SUCCESS in 6m 21s :x: fi-tox-diff-cover FAILURE in 10m 45s

softwarefactory-project-zuul[bot] commented 6 months ago

Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/61f8e3c488154085be3118a60e0dd062

:heavy_check_mark: fi-tox-mypy SUCCESS in 5m 18s :heavy_check_mark: fi-tox-lint SUCCESS in 6m 30s :heavy_check_mark: fi-tox-format SUCCESS in 5m 16s :heavy_check_mark: fi-tox-python38 SUCCESS in 9m 21s :heavy_check_mark: fi-tox-python39 SUCCESS in 10m 26s :heavy_check_mark: fi-tox-python310 SUCCESS in 8m 53s :heavy_check_mark: fi-tox-python311 SUCCESS in 9m 15s :heavy_check_mark: fi-tox-docs SUCCESS in 8m 06s :heavy_check_mark: fi-tox-bandit SUCCESS in 5m 00s :heavy_check_mark: fi-tox-diff-cover SUCCESS in 9m 53s

softwarefactory-project-zuul[bot] commented 6 months ago

Build succeeded. https://fedora.softwarefactory-project.io/zuul/buildset/6d7db7a8628d4e0aa6d174f6297dd2aa

:heavy_check_mark: fi-tox-mypy SUCCESS in 6m 40s :heavy_check_mark: fi-tox-lint SUCCESS in 5m 01s :heavy_check_mark: fi-tox-format SUCCESS in 5m 13s :heavy_check_mark: fi-tox-python38 SUCCESS in 9m 34s :heavy_check_mark: fi-tox-python39 SUCCESS in 10m 37s :heavy_check_mark: fi-tox-python310 SUCCESS in 9m 04s :heavy_check_mark: fi-tox-python311 SUCCESS in 9m 08s :heavy_check_mark: fi-tox-docs SUCCESS in 6m 30s :heavy_check_mark: fi-tox-bandit SUCCESS in 5m 12s :heavy_check_mark: fi-tox-diff-cover SUCCESS in 11m 15s

Zlopez commented 6 months ago

Thanks for the PR :-)