folder-auth-plugin icon indicating copy to clipboard operation
folder-auth-plugin copied to clipboard

Add new API GET methods

Open blanked opened this issue 4 years ago • 12 comments

I thought it'll be good to have GET methods as well. This will allow admins to write automation (eg. reports for publishing user access info) on the plugin without having to resort to script console.

blanked avatar Oct 24 '20 12:10 blanked

ah it looks like the PR-merge build failed due to an issue on the agent? i'll close and reopen the PR to induce a rebuild

blanked avatar Oct 25 '20 07:10 blanked

Thanks a lot @blanked ! I will try to review this PR as soon as possible.

AbhyudayaSharma avatar Oct 26 '20 07:10 AbhyudayaSharma

@AbhyudayaSharma , Any update on this feature?

kalyantag avatar Feb 08 '21 08:02 kalyantag

@kalyantag Sorry, I got busy with other things and forgot about this PR. I will review it this weekend.

AbhyudayaSharma avatar Feb 09 '21 06:02 AbhyudayaSharma

Thanks @AbhyudayaSharma

kalyantag avatar Feb 09 '21 09:02 kalyantag

@blanked Thanks a lot! Looks like the build is failing because of missing @throws in JavaDocs.

Exit code: 1 - /home/jenkins/workspace/Plugins_folder-auth-plugin_PR-69/src/main/java/io/jenkins/plugins/folderauth/FolderAuthorizationStrategyManagementLink.java:459: warning: no @throws for java.io.IOException

AbhyudayaSharma avatar Mar 06 '21 06:03 AbhyudayaSharma

@blanked Thanks a lot! Looks like the build is failing because of missing @throws in JavaDocs.

Exit code: 1 - /home/jenkins/workspace/Plugins_folder-auth-plugin_PR-69/src/main/java/io/jenkins/plugins/folderauth/FolderAuthorizationStrategyManagementLink.java:459: warning: no @throws for java.io.IOException

Oh the throws IOException was meant to be removed due to the removal of stapler writer but I missed it.

blanked avatar Mar 06 '21 12:03 blanked

Ok I've implemented the suggestions. Can you take another look and see if the PR is good to go? Thanks @AbhyudayaSharma

blanked avatar Mar 06 '21 12:03 blanked

I think the build can be restarted by pushing an empty commit (git commit --allow-empty) or closing it, waiting for 2 minutes and then reopening. I also believe that there was a hook added to rebuild from comments on pull requests in last year's GSoC. I will try to find whether it is available on ci.jenkins.io


From: Hui Jun [email protected] Sent: Saturday, 6 March 2021, 21:17 To: jenkinsci/folder-auth-plugin Cc: Abhyudaya Sharma; Mention Subject: Re: [jenkinsci/folder-auth-plugin] Add new API GET methods (#69)

Ok is there any way of retriggering the tests? It seems like there were problems on the agent for the build. Closing and reopening doesn't seem to trigger a new build

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/jenkinsci/folder-auth-plugin/pull/69#issuecomment-791975089, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACXQV3YDJYIBITKSPEIJW4TTCJFB7ANCNFSM4S5SCAPA.

AbhyudayaSharma avatar Mar 07 '21 05:03 AbhyudayaSharma

Ok I finally got a build to run successfully. I believe I've addressed all of the comments/suggestion. Let me know if there are any other comments/suggestions? Thanks!

blanked avatar Mar 07 '21 16:03 blanked

Hi @oleg-nenashev ! If you have some time, could you please take a quick look at this PR?

AbhyudayaSharma avatar Mar 18 '21 05:03 AbhyudayaSharma

Hi @blanked. Sorry for the delay. What would you think about exporting the entire plugin configuration as JSON as done in https://github.com/jenkinsci/folder-auth-plugin/pull/58/files#diff-237f6cdc333b75a3ea591296a855f117edf78bb4ec1f9cbbc2391811e672304d?

AbhyudayaSharma avatar Sep 13 '21 06:09 AbhyudayaSharma