Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there an event fired when git-lfs is enabled through the UI?

Vishal Sankaranarayanan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 24, 2019

The "Allow LFS" checkbox is there in the repository details page for a particular repository, and I can check/uncheck the box after which I will be saving the setting. 

Is there any event that is fired when the git-lfs option is enabled via the UI?

I ask mainly because if I would want to, say, cancel the event based on some business logic, will I be able to do so via a plugin that listens to a event that is fired when the checkbox is ticked or when the settings is saved?

We are running a bitbucket server running on version 6.6.2.

1 answer

0 votes
Jeff Thomas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 6, 2020

Hi @Vishal Sankaranarayanan,

It's currently not possible to cancel when LFS has been enabled in the UI via a plugin. There is an event that is fired (GitLfsFeatureEnabledEvent), but it can't be cancelled and is also fired after LFS has been enabled. I'm also not sure if your plugin would be able to see the GitLfsFeatureEnabledEvent event as well since it's in an internal class.

If you'd like, you're welcome to raise a feature request for this over at https://jira.atlassian.com/secure/Dashboard.jspa I'd encourage you to clearly outline the use case so that our team can try to prioritize this and determine if it's something we will implement in the product.

Cheers,
Jeff

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events