Coder Social home page Coder Social logo

Comments (17)

jrhbcn avatar jrhbcn commented on July 28, 2024 1

Yes, something like @samcro1967 is suggesting sounds fine! I was thinking something similar as to keeping the info and removing the current greyed out "OK" and "cancel" buttons for a "skip" one (or even adding a "refresh" one to maintain the 3 button layout if you want).

from argus.

JosephKav avatar JosephKav commented on July 28, 2024 1

Spent a while discussing possible designs with friends and eventually settled on this. The satellite symbol is what the (i) is currently (signifier of whether it's monitoring a deployed version of the service), and this new (i) is the version skipped one (Skipped 3.2.1). Also changed the resend icon to a rotate-right icon to look like retry/redo. Did have this a while ago but was a bit against it as people might think it's a refresh for the version query, but I'd say it bringing up a modal with options for resending webhooks overcomes that issue
image
Hope you like it!

(Am gonna rename this issue to better highlight what it's turned into + make the upcoming PR cleaner)

from argus.

jrhbcn avatar jrhbcn commented on July 28, 2024 1

Thanks yet again, working perfect now!

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

That's just how I designed it. I believe the info button looked too different otherwise and I wanted it to be a consistent layout/design

from argus.

jrhbcn avatar jrhbcn commented on July 28, 2024

@JosephKav Would it be possible to skip a release even if a webhook is not defined (but a deployment version is)? Sometimes I just want to skip a release without updating (for instance the .0 home assistant releases or the Unifi release candidates).

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

Yeah, I can look into adding this. Just not sure on how I'd discretely signify services that have skipped a version. I do this for those with webhooks by changing the resend icon to a tick

from argus.

samcro1967 avatar samcro1967 commented on July 28, 2024

I would suggest adding "(skipped)" in the description after what is currently called To and remove the webhook buttons. Might also consider renaming "From" and "To" to current and deployed for consistency, although I think it is intuitive enough as is.

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

I don't really want to keep those update available options when you skip a release as I want a skip to not loudly show that there is a new version available. Currently, when you skip a release with webhooks, those buttons disappear and the only indicator of the skip is the icon on the resend button becoming a tick. We can't do that as there's nothing to resend in these cases.

I've managed to get it to hide the 'Send' button, but still take up the same space. So here's the options you'll get if there's a deployed_version checker, but no webhooks:
image

I'm proposing we add another info icon to display that it's skipped, but just right-align it
image

Not sure whether to display that icon if there are webhooks
image
as the resend icon has changed, and the modal that pops up tells you which version it's on and would go to (so what version has been skipped)
image
I'm leaning towards keeping the existing layout when the service has webhooks and so only displaying this 'Skipped VERSION' icon when there are no webhooks

from argus.

samcro1967 avatar samcro1967 commented on July 28, 2024

I think that makes sense. So you would click on the info button and get the ability to deploy if a webhook is present? And you can also skip a version if a webhook is not even present and get the info button?

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

So you would click on the info button and get the ability to deploy if a webhook is present?

nothing's changed if you have webhook.s You'll get the options to view info on it, approve it, and skip it

And you can also skip a version if a webhook is not even present and get the info button?

If you don't have any webhooks (but do have a deployed version it's checking as otherwise the version would update straight away), it'll give you my first picture with the info and skip buttons

from argus.

samcro1967 avatar samcro1967 commented on July 28, 2024

Ah, now I understand. With no webhook defined, you go straight to skipped. So the only indication that you are a version behind at that point is the skipped button. I think that makes sense. Maybe make the button red so it jumps out.

from argus.

jrhbcn avatar jrhbcn commented on July 28, 2024

@JosephKav your proposal looks perfect! I would prefer having the skipped icon (maybe with an "s" instead of "i") always (even with webhooks defined) but it is just a small thing.

Thank you for considering this.

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

I do like the look of the S as two of the same icon looks a bit random. Coloured it yellow as a warning that an update's been skipped
image
image

Now I'm not too sure about how to handle the update being skipped and webhooks being available

  • no change (tick icon when it's been skipped)
    image
  • yellow the tick icon
    image
  • show the S next to the webhook resend
    image
    I'm slowly coming to prefering this over the yellow tick. What are your thoughts?
    image

from argus.

jrhbcn avatar jrhbcn commented on July 28, 2024

I buy the "S" icon myself :)

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

I've merged this feature to master now. Will do a release after adding send/resend for commands to the UI

from argus.

jrhbcn avatar jrhbcn commented on July 28, 2024

Hi @JosephKav

Congrats for the new release! :)

I just installed it, but I still see no way to skip a release. For example "Home Assistant" I still see:

Screenshot 2022-06-02 at 16 54 05
Screenshot 2022-06-02 at 16 54 09

With the "skip/cross" option greyed out :?

from argus.

JosephKav avatar JosephKav commented on July 28, 2024

I just installed it, but I still see no way to skip a release. For example "Home Assistant" I still see:
With the "skip/cross" option greyed out :?

@jrhbcn, sorry about that! I've just fixed this in my latest commit (6972734). Turns out I had it marking every version as approved if there was a deployed_version lookup. We only want this approved_version to track skipping a release and when we've got a deployed_version lookup along with commands/webhooks that should perform the upgrade. So when we approve the release (send the webhooks/commands), it'd mark it as approved to stop you/someone else retriggering the upgrade that should already be in progress.

So I've updated it to fix this. All you should have to do on your end if you want to skip this latest release, would be to remove the approved_version line from your config. Or you can just ignore it and wait for a newer release and skip that one.

0.5.1 is building now

from argus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.