-
Notifications
You must be signed in to change notification settings - Fork 19
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
Implement license activation hook #2
Comments
@thecatontheflat just wonder - does atlassian connect have hook for licence activation/deactivation? Right now we use this bundle for cloud application and we do not get "lic" flag in _GET request.
SAMPLE REST RESPONSE
What do you think about such an implementation? |
Hey @zhil
I think I was referring to
Most likely you're not getting Regarding storing the license in the Tenant — I am not sure about this, because I would like to rely on the request data. If you need to double-check the license status — you should request a |
well, as I understand, enabling/disabling licence is actually not the same, as licence expiration. But I will test it more
Its not the case. Jira simply doesnt set that flag for webhooks.
We get a lot of webhook calls, checking licence each time is not a solution. It should be either updated by hook or checked from cron. Anyway, licence state should be stored somewhere, tenant entity looks like logical location. |
Ah, I didn't get it at first that the flag is missing in the webhook. Yeah, in this case I think your proposal would work. I suggest to store What do you think? |
@thecatontheflat I will need to do some tests and check if enabled/disabled is the same as expired/active. because expired and disabled states plugin could handle in different ways. |
No description provided.
The text was updated successfully, but these errors were encountered: