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

[#336] Removed Hijack #343

Closed
wants to merge 1 commit into from
Closed

[#336] Removed Hijack #343

wants to merge 1 commit into from

Conversation

ErhanCitil
Copy link
Contributor

No description provided.

@ErhanCitil ErhanCitil self-assigned this Jun 23, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #343 (6443638) into master (55fbbee) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #343      +/-   ##
==========================================
- Coverage   94.78%   94.77%   -0.01%     
==========================================
  Files         131      131              
  Lines        4543     4538       -5     
==========================================
- Hits         4306     4301       -5     
  Misses        237      237              
Impacted Files Coverage Δ
src/objects/accounts/migrations/0001_initial.py 100.00% <ø> (ø)
...cts/accounts/migrations/0002_auto_20201012_1522.py 100.00% <ø> (ø)
...cts/accounts/migrations/0003_auto_20201223_1231.py 100.00% <ø> (ø)
src/objects/api/validators.py 94.02% <ø> (ø)
src/objects/conf/base.py 92.94% <ø> (-0.32%) ⬇️
src/objects/core/migrations/0001_initial.py 100.00% <ø> (ø)
...objects/core/migrations/0002_auto_20200518_1707.py 100.00% <ø> (ø)
src/objects/core/migrations/0003_objectrecord.py 100.00% <ø> (ø)
...bjects/core/migrations/0004_move_data_to_record.py 62.50% <ø> (ø)
...objects/core/migrations/0005_remove_object_data.py 100.00% <ø> (ø)
... and 33 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@ErhanCitil
Copy link
Contributor Author

@alextreme deze kan ook nagekeken worden

from .models import User


@admin.register(User)
class _UserAdmin(UserAdmin, HijackUserAdminMixin):
list_display = UserAdmin.list_display + ("hijack_field",)
class UserAdmin(UserAdmin):
Copy link
Member

Choose a reason for hiding this comment

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

dit kan dan weg volgens mij

Copy link
Contributor Author

Choose a reason for hiding this comment

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

dit kan dan weg volgens mij

Ik kan de @admin.register(User) niet gebruiken zonder de UserAdmin class

Copy link
Member

Choose a reason for hiding this comment

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

@ErhanCitil
Copy link
Contributor Author

@alextreme rebase gelukt

Copy link
Member

@alextreme alextreme left a comment

Choose a reason for hiding this comment

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

Fine by me, but I suspect that @annashamray would like to see the hijack-removal and the blacking of the migrations in two separate commits

Copy link
Collaborator

@annashamray annashamray left a comment

Choose a reason for hiding this comment

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

@alextreme I think like this PR and #341 contradict each other. In PR #341 hijack is even updated

I think one of them should be closed

@@ -36,3 +34,4 @@ elastic-apm # Elastic APM integration
# Common ground libraries
vng_api_common[markdown_docs]>=1.6.4
zgw-consumers # external api auths
markdown==3.4.3
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove pinned version from base.in, we pin versions in base.txt
And why is this package needed?

@alextreme
Copy link
Member

@alextreme I think like this PR and #341 contradict each other. In PR #341 hijack is even updated

I think one of them should be closed

Django needs to be upgraded (that is what #341 was for) and django-hijack needs to be removed. That Erhan also decided to upgrade django-hijack in #341 is indeed redundant, but not a contridiction. If this PR is approved & merged before #341 then #341 needs to be updated accordingly.

@annashamray
Copy link
Collaborator

@alextreme Ok, then I'll wait for #341 to be merged and then review this PR

@ErhanCitil ErhanCitil changed the title 🔥 [#336] Removed Hijack [#336] Removed Hijack Aug 3, 2023
@Viicos Viicos mentioned this pull request Jan 18, 2024
@Viicos Viicos closed this Jan 18, 2024
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