Hi Danushka/Manisha

The exact issue popups with if someone deleted a forked application and if
someone create and application with the same name and then hit fork
application.

Apart from repository deletion from Gitblit we have to remove the forked
build jobs in jenkins and undeploy the related artifacts from S2git too.
Implementation of this is inside the onDeletion method in
JenkinsApplicationEventsListener class. When doing this also we have to go
through all the users of the application and check whether that they have
forks available and then do the delete.

Thanks,
Kasun


*Kasun de Silva*
Software Engineer | *WSO2 Inc.*; http://wso2.com
lean.enterprise.middleware

email   : [email protected]
mobile : +94 77 794 4260


On Mon, Mar 2, 2015 at 12:19 PM, Danushka Fernando <[email protected]>
wrote:

> Let me understand what you are trying to do. Are you trying to introduce a
> service call from AF to AF itself? I guess we are in a process of reducing
> the Service calls in AF. So can't we move the logic to some util method and
> call the util method from the repo provider.
>
> Thanks & Regards
> Danushka Fernando
> Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Mon, Mar 2, 2015 at 11:59 AM, Manisha Gayathri <[email protected]>
> wrote:
>
>> Hi,
>>
>> I am fixing [1] for AF RC1.
>> For that during application deletion event, we need to delete the forked
>> repos. To delete forked repos, we need to get the user list of the
>> application and delete forks of each user if available for them.
>>
>> From RepositoryHandler's onDeletion method it selects the Repository
>> provider and since this is for Gitblit, we can write the implementation
>> logic in GITBlitBasedGITRepositoryProvider.
>>
>> We can get the users of the application
>> by ApplicationUserManagementService. The more cleaner approach will be
>> calling this service via a stub. There is no stub available for this as of
>> now, hence, I will be introducing a stub for this particular service.
>>
>> [1]. https://wso2.org/jira/browse/APPFAC-2226
>>
>> --
>> ~Regards
>> *Manisha Eleperuma*
>> Software Engineer
>> WSO2, Inc.: http://wso2.com
>> lean.enterprise.middleware
>>
>> *blog:      http://manisha-eleperuma.blogspot.com/
>> <http://manisha-eleperuma.blogspot.com/>*
>> *mobile:  +94 71 8279777 <%2B94%2071%208279777>*
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to