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

ext: notifications: Add link logging for management of new comments in Stdout #1016

Merged

Conversation

pkvach
Copy link
Contributor

@pkvach pkvach commented Apr 23, 2024

Checklist

  • All new and existing tests are passing
  • I have added an entry to CHANGES.rst because this is a user-facing change or an important bugfix
  • I have written proper commit message(s)

What changes does this Pull Request introduce?

When the server is configured with general.notify = stdout and moderation.enabled = true, new comment activation links are not added to Stdout.
I modified the Stdout class to log a direct link to a new comment, as well as links to delete or activate the comment.

Why is this necessary?

Fixes #138

@pkvach pkvach force-pushed the fix/add-stdout-logging-for-new-comments branch from 1111fa8 to eb26d9e Compare April 23, 2024 21:29
@ix5 ix5 added server (Python) server code feature labels Apr 23, 2024
@ix5 ix5 added this to the 0.14 milestone Apr 23, 2024
@pkvach pkvach force-pushed the fix/add-stdout-logging-for-new-comments branch from eb26d9e to c9277c6 Compare April 23, 2024 21:46
@ix5
Copy link
Member

ix5 commented Apr 23, 2024

Tested locally and LGTM, is this ready for review or are you expecting to force-push something again?

@pkvach pkvach force-pushed the fix/add-stdout-logging-for-new-comments branch from c9277c6 to 1f6a96e Compare April 24, 2024 04:58
@pkvach
Copy link
Contributor Author

pkvach commented Apr 24, 2024

@ix5
Thank you for checking.
This is ready for review, I had to fix conflicts in the CHANGES.rst file.

@ix5
Copy link
Member

ix5 commented Apr 29, 2024

Code LGTM.

The thing that I'm stumbling over a bit is that this effectively gives anyone with log access (partial) admin rights. Then again, this can be guarded against by setting correct permissions on log files or journald logging.

Anyway, this PR is good to go, merging.

@ix5 ix5 merged commit 16dce51 into isso-comments:master Apr 29, 2024
11 of 15 checks passed
@pkvach pkvach deleted the fix/add-stdout-logging-for-new-comments branch April 30, 2024 05:10
@ix5 ix5 modified the milestones: 0.14, 0.13.1 May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature server (Python) server code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Activation link is not written to stdout
2 participants