Skip to content

fix: ui consistency when rejecting/approving events#1886

Open
ZamanZahid wants to merge 1 commit into
tjcsl:devfrom
ZamanZahid:dev
Open

fix: ui consistency when rejecting/approving events#1886
ZamanZahid wants to merge 1 commit into
tjcsl:devfrom
ZamanZahid:dev

Conversation

@ZamanZahid

Copy link
Copy Markdown

closes #1825

Proposed changes
keeps ?show=all, after approve/reject

@ZamanZahid ZamanZahid requested a review from a team as a code owner April 10, 2026 03:45
@coveralls

coveralls commented Apr 10, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 79.259% (+0.007%) from 79.252% — ZamanZahid:dev into tjcsl:dev

@aarushtools aarushtools left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi Zaman,

Good start on this PR - can you look at my comment? The approach you're using right now is a bit overly verbose. Thanks

Comment thread intranet/apps/events/views.py Outdated
logger.info("Admin %s approved event: %s (%s)", request.user, event, event.id)
query_string = request.GET.urlencode()
url = f"{reverse('events')}?{query_string}" if query_string else reverse("events")
return redirect(url)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you can make this a lot simpler if you use the request object

@ZamanZahid

Copy link
Copy Markdown
Author

I simplified it using the request object and pushed the update.

@aarushtools aarushtools left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hi Zaman,

That's close but not quite what I had in mind, there's a better method you can use here. Meta can also be spoofed (but that's low concern)

@ZamanZahid

ZamanZahid commented May 13, 2026

Copy link
Copy Markdown
Author

great, lmk if it's good.

@ZamanZahid ZamanZahid requested a review from aarushtools May 14, 2026 23:31
aarushtools
aarushtools previously approved these changes May 15, 2026
@ZamanZahid

Copy link
Copy Markdown
Author

Finished

@ZamanZahid ZamanZahid reopened this May 17, 2026
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.

Fix UI consistency when rejecting/approving events

3 participants