coderazzi / aws_codeartifact_maven

Support to update AWS CodeArtifact credentials on maven IDEA projects.
MIT License
6 stars 7 forks source link

Option to schedule the token refreshment #4

Open ktulinger opened 2 years ago

ktulinger commented 2 years ago

Hello, it is a great plugin indeed, I've been using that absolutely satisfied for some time already.

I have one suggestion, could it be possible to add a "schedule" option (perhaps to the dialogue). Like "auto-refresh the token every x hours", that way I wouldn't even need to think about having Code Artifact as a repository when developing.

coderazzi commented 2 years ago

Hi, Kryštof, that would be indeed a good enhancement. But I am afraid I would need to change the plugin quite a lot, it is not enough to just add now a background task. I will see how / when I can add it, Best,

Lu.

On Fri, Dec 10, 2021 at 2:21 PM Kryštof Tulinger @.***> wrote:

Hello, it is a great plugin indeed, I've been using that absolutely satisfied for some time already.

I have one suggestion, could it be possible to add a "schedule" option (perhaps to the dialogue). Like "auto-refresh the token every x hours", that way I wouldn't even need to think about having Code Artifact as a repository when developing.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/coderazzi/aws_codeartifact_maven/issues/4, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH54IJP57WBYQBHFEE7LODUQH5EJANCNFSM5JZD6RZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

sebastianhaeni commented 1 month ago

@coderazzi would you be open to a Pull Request that implements this feature?

If yes, any starting hints?

coderazzi commented 1 month ago

Hi, Sebastian, definitely, please go ahead. There is a plugin called Reminer me, it does the job (just running a scheduled background thread that checks periodically for expired timers). The job that invokes AWS and updates the maven settings file is already a background task, so this periodic job should not be complex to include. I am at the moment implementing the UI to have multiple repositories updated at once, and I had planned to implement afterward this functionality (it would make sense to have the job automatically done, periodically, instead of going over each tab to renew the token).

Best regards,

Lu

On Tue, Oct 8, 2024 at 9:15 AM Sebastian Häni @.***> wrote:

@coderazzi https://github.com/coderazzi would you be open to a Pull Request that implements this feature?

If yes, any starting hints?

— Reply to this email directly, view it on GitHub https://github.com/coderazzi/aws_codeartifact_maven/issues/4#issuecomment-2399161604, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAH54INK5X3PQDMBDKWG5W3Z2OH73AVCNFSM6AAAAABPRTONCKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJZGE3DCNRQGQ . You are receiving this because you were mentioned.Message ID: @.***>