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

Fixing issues with Slack notifications, missing/wrong variables #3422

Closed
wants to merge 12 commits into from

Conversation

AntonioKL
Copy link
Contributor

No description provided.

@welcome
Copy link

welcome bot commented Jan 18, 2019

Congratulations on opening your first Pull Request, this is a momentous day for you and us! ✨
To help us out, please make sure that you've followed the below:

Eding manage button for subscription
Adding manage route
enableSubscribers is used for Signup on the main dashboard, but cannot be forced for Admin on control
@AntonioKL
Copy link
Contributor Author

Adding feature to allow manage subscription out of admin GUI

Existing subscription user should be able to manage his setting without considering if he is allowed to subscribe or not.
Copy link
Member

@jbrooksuk jbrooksuk left a comment

Choose a reason for hiding this comment

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

This looks good, other than we shouldn't have changed the middleware?

@@ -52,10 +52,6 @@ public function __construct(Repository $config)
*/
public function handle(Request $request, Closure $next)
{
if (!$this->config->get('setting.enable_subscribers')) {
Copy link
Member

Choose a reason for hiding this comment

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

Why have we removed this condition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why have we removed this condition?

The subscription page must be manageable, despite the setting "Allow to subscribe". Admin should always be able to configure the subscribers and manage their subscriptions, etc.

You can not have this setting enabled or not based on "if the user is allowed to subscribe or not feature"

Copy link
Member

Choose a reason for hiding this comment

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

Then the condition should check for an active admin user, then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is done at the auth module ( outside of the scope for this commit)

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is handled in app/Http/Kernel.php
@jbrooksuk

Copy link
Member

Choose a reason for hiding this comment

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

I don't understand?

Copy link
Member

Choose a reason for hiding this comment

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

If subscriptions aren't enabled and you're not an admin, then you shouldn't be able to see the subscription page, so as far as I can tell, the middleware is required.

@jbrooksuk
Copy link
Member

@AntonioKL if you could address the middleware issue above, we could get this merged 😄

@AntonioKL
Copy link
Contributor Author

@jbrooksuk

Please merge the code. Just tested the code and middleware in place

@li-olivierfostier
Copy link

Hello,
Can some tell us where/how can we adjust parameters to add Slack notification ?
Nothing found in the documentation.

Thx

@Pimorez
Copy link

Pimorez commented Jun 26, 2019

Hello,
Can some tell us where/how can we adjust parameters to add Slack notification ?
Nothing found in the documentation.

Thx

For now you have to manually update the subscribers table in the database. It contains a slack_webhook_url column

@jbrooksuk
Copy link
Member

Thank you for your input on Cachet 2.x. We are shifting our attention and resources to Cachet 3.x and will no longer be supporting the 2.x version. If your feedback or issue is relevant to the 3.x series, we encourage you to engage with the new branch.

For more information on the Cachet rebuild and our plans for 3.x, you can read the announcement here.

We appreciate your understanding and look forward to your contributions to the new version.

@jbrooksuk jbrooksuk closed this Aug 12, 2023
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.

None yet

4 participants