Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Check for extensions updates #6614

Open
core-ai-bot opened this issue Aug 30, 2021 · 30 comments
Open

[CLOSED] Check for extensions updates #6614

core-ai-bot opened this issue Aug 30, 2021 · 30 comments

Comments

@core-ai-bot
Copy link
Member

Issue by zaggino
Tuesday Mar 25, 2014 at 22:10 GMT
Originally opened as adobe/brackets#7330


As mentioned here adobe/brackets#6723

Ping@lkcampbell@larz0

image

P.S.: this is not a complete thing but I wanted to get it moving at least a bit (and design is ugly because I don't have a software to work with SVG :)) Feel free to push into this branch.


zaggino included the following code: https://github.com/adobe/brackets/pull/7330/commits

@core-ai-bot
Copy link
Member Author

Comment by larz0
Tuesday Mar 25, 2014 at 23:08 GMT


Thanks@zaggino! I played with it, trying to make the number smaller so it won't cover the extension icon but made the number hard to read. I think we discussed that's it's okay to not include the number. Thoughts?

screen shot 2014-03-25 at 4 05 36 pm

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Tuesday Mar 25, 2014 at 23:52 GMT


Yes, we can remove the number completely. I think@lkcampbell mentioned just making the icon green and that's fine with me, but I didn't really know how to do it fast and didn't want to spent half a day with SVG thingy now :)

@core-ai-bot
Copy link
Member Author

Comment by larz0
Wednesday Mar 26, 2014 at 00:09 GMT


We can just use span like what@peterflynn suggested originally like this (ignore font-size: 0, we should just remove the text):

screen shot 2014-03-25 at 5 08 42 pm

@core-ai-bot
Copy link
Member Author

Comment by larz0
Wednesday Mar 26, 2014 at 00:10 GMT


It'll look like this:

screen shot 2014-03-25 at 5 10 03 pm

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Wednesday Mar 26, 2014 at 01:01 GMT


@Larz0 done ;-)

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Wednesday Mar 26, 2014 at 01:05 GMT


I have now realized that update check is done every time someone closes and opens the Brackets... Not only my new update check for extension but also the old check for new Sprint version... this is probably spamming the server? Ping@TomMalbran to clarify.

@core-ai-bot
Copy link
Member Author

Comment by larz0
Wednesday Mar 26, 2014 at 01:06 GMT


I accidentally hit close!

Hopefully this can be merged pretty quickly.

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Wednesday Mar 26, 2014 at 01:08 GMT


Probably not so fast, I see these lines in master https://github.com/adobe/brackets/blob/master/src/brackets.js#L295-L305 as problematic. I don't think it's a good idea to do requests everytime Brackets are started - I do that quite a lot.

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Wednesday Mar 26, 2014 at 01:11 GMT


Also Travis says zaggino has NOT submitted the contributor license agreement ... what sorcery is this? 😕

@core-ai-bot
Copy link
Member Author

Comment by larz0
Wednesday Mar 26, 2014 at 01:18 GMT


Hmm I think I saw an email about that from@redmunds.

@core-ai-bot
Copy link
Member Author

Comment by TomMalbran
Wednesday Mar 26, 2014 at 01:31 GMT


@zaggino According to issue #6723 the idea was to call it every 24 hours, so it probably shouldn't call it on every launch. So you save the time you get an update and on you just start the timeout on every launch using that time. It should also get updated every time you open the registry and when you update extensions. In this case we should reset the timer. And finally, it might be a good idea to get the updates on the first launch after a Brackets update.

The Brackets updates and the Registry live on different servers and while the Brackets update request might be short, the registry might be a lot longer. So it should use a lot less bandwidth to call the brackets update than the registry. So it might make sense that one resets on every launch but the other one doesn't.

@core-ai-bot
Copy link
Member Author

Comment by TomMalbran
Wednesday Mar 26, 2014 at 01:40 GMT


It might also be nice to add a new API to the registry to retrieve the data for a list of extensions, so that we don't need to get every single extension when only have a few installed. But that might be for another PR.

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Wednesday Mar 26, 2014 at 02:28 GMT


Ah, it actually does check for the 24 hours, but much more deeper in the code, I'll try to rewrite it a bit.

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Wednesday Mar 26, 2014 at 03:16 GMT


This works better now - check at most once a day + if extension is uninstalled or updated, do not show notification for it.

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Wednesday Mar 26, 2014 at 03:32 GMT


zaggino has NOT submitted the contributor license agreement

There's a bug in our CLA check script where all checks are failing. We're working on it.

@core-ai-bot
Copy link
Member Author

Comment by lkcampbell
Wednesday Mar 26, 2014 at 15:11 GMT


Just my two cents on this, I always liked the design where the block turns completely green. This is a screenshot from issue #6723 as a comparison:

update-extension

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Wednesday Mar 26, 2014 at 15:57 GMT


Only changing the color is easy to miss for people who are partially colorblind (like me), so I like the idea of also adding a "+" to the icon.

@core-ai-bot
Copy link
Member Author

Comment by JeffryBooher
Wednesday Mar 26, 2014 at 17:28 GMT


@TomMalbran can you take a look?

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Wednesday Mar 26, 2014 at 18:28 GMT


I agree with@lkcampbell that green icon and plus notification sign together would be better than just the latter one.

@core-ai-bot
Copy link
Member Author

Comment by larz0
Wednesday Mar 26, 2014 at 18:33 GMT


Can we just use what we discussed at adobe/brackets#6723? There's a lot of good points there.

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Wednesday Mar 26, 2014 at 18:54 GMT


@larz0 I wanted to make the green icon but I'm a fail graphics person. Is there a good reasonable free editor for Windows to work with SVG files?

@core-ai-bot
Copy link
Member Author

Comment by larz0
Wednesday Mar 26, 2014 at 19:37 GMT


@zaggino Inkscape or Adobe Illustrator. Here's the SVG that you can use: http://cl.ly/1O2B2g150q35

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Wednesday Mar 26, 2014 at 19:48 GMT


Thanks 👍

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Wednesday Mar 26, 2014 at 21:14 GMT


Looks great now :)
image

@core-ai-bot
Copy link
Member Author

Comment by larz0
Wednesday Mar 26, 2014 at 21:17 GMT


dancing-animals

@core-ai-bot
Copy link
Member Author

Comment by TomMalbran
Wednesday Mar 26, 2014 at 22:19 GMT


@larz0 What do you want to see from #6723 here?

@zaggino Now that we don't show the extensions count, we don't need to check with the registry if the icon is already green.

@core-ai-bot
Copy link
Member Author

Comment by larz0
Wednesday Mar 26, 2014 at 22:27 GMT


@TomMalbran it's fine now.

@core-ai-bot
Copy link
Member Author

Comment by TomMalbran
Wednesday Mar 26, 2014 at 22:32 GMT


Ok. There was a discussion about stop showing updates when you opened the extensions manager and decided not to update the extensions. If we don't do that, we could update the icon after the extension manager is open, if it was gray, but there are new extensions.

One other thing, it might be nice to not show those extensions that can't be update because thy require a newer version of brackets.

@core-ai-bot
Copy link
Member Author

Comment by TomMalbran
Thursday Mar 27, 2014 at 00:41 GMT


@zaggino Is it really necessary to call the Brackets update and the Extensions updates at the same time? Can we just call them on different time?

@core-ai-bot
Copy link
Member Author

Comment by zaggino
Thursday Mar 27, 2014 at 00:45 GMT


It's not, I just didn't see much point in calling them in different times.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant