You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Towards unobtrusive notices and notifications #6945
This is more of a discussion than a concrete list of actionable items. Since Atom's launch, I've started to notice more things seeking my attention in an increasingly aggressive manner. They seem small in isolation, but when you add them up and make them recurring, Atom can begin to nag you.
Below is the most recent example. I wanted to take a quick look at some docs, so I run atom .
a. Non-fatal errors are blocking content - Is this dialog necessary given b.?
b. Duplicate update notices - How can Atom minimize these or get rid of them completely?
c. The ! feels unnecessary - Deprecation and update notices now contain an ! mark. It's small, but this changes the tone of the message from informing me, to shouting at me.
d. More packages. more notices - It seems logical that the longer you are an Atom user, the more package you install, the more notices you are going to get.
Deprecation notices
When you click on the deprecation notice text in the status bar, you are taken to this screen:
This screen feels unnecessary to anyone using Atom. Unless I'm a developer or I'm specifically trying to debug packages, I'm not too concerned with what methods in what packages are deprecated. I would like the deprecation message to go away so I can get back to work. How can Atom help me do that? Could the "Check for updates" step happen automatically? Could updates be installed during relaunch or during idle time?
Package updates
There's 1 update available. When I click the notice in the status bar, I'm taken to this screen that runs an additional check for updates and then lists the packages that have updates. Does Atom need to run this check again since it knows I have a package that needs an update already?
Some considerations
In the spirit of GitHub Zen, here are a few things to consider:
Atom should strive to not block content for non-fatal errors.
Atom should strive to keep notifications to a minimum.
Atom should strive to reduce manual administrative overhead (updating packages, atom, etc.).
a. has been discussed multiple times on Discuss - a good one is this topic.
b. I've been under the impression that the new notification is just a stopgap measure to encourage people to upgrade their packages until 1.0 is released.
c. Fully agree - I like the new text next to each item, but the ! seems over-the-top.
d. See b.
Deprecation notice: I had that package disabled for a couple of months, precisely because it didn't really help me to know that xyz package was using a deprecated method. The only thing in there that is helpful to a normal user is the your styles.less file notice. It does help notifying package authors that their package has deprecations though.
is helpful to a normal user is the your styles.less file notice.
That was killing me. I save constantly, often in the middle of edits.
That syntax error popped up so often I couldn't edit. When combined with
the overall obnoxious intrusion of the pop-ups I have disabled them. I've
been doing just great without them.
I used to use the error-status package which only had a small bar above the
status bar which allowed me to keep working. That was awesome.
Deprecation notice: I had that package disabled for a couple of months,
precisely because it didn't really help me to know that xyz package was
using a deprecated method. The only thing in there that is helpful to a
normal user is the your styles.less file notice. It does help notifying
package authors that their package has deprecations though.
Deprecation notice: I had that package disabled for a couple of months, precisely because it didn't really help me to know that xyz package was using a deprecated method.
Cool. Seems like this could be disabled by default and conditionally enabled with the --dev flag since it's primary use is for development.
has been discussed multiple times on Discuss - a good one is this topic.
Seems sensible to want to get everyone as up-to-date as possible. Seems Atom needs some type of information dialog that doesn't block content unless it's explicitly triggered by the user. For instance, maybe there's a persistent dialog that originates from above the status bar item it belongs to.
The upgrade nag notification and deprecation status bar icon will be going away soon, but are super necessary right now. We're on the cusp of removing all the old APIs (june 1), which would break a bunch of packages if we didnt do anything.
When we started tracking deprecations in analytics last week, we noticed that there were a ton of people using very very out of date packages. They had the latest version of atom, but were, say, using a months-old vim-mode version. Since the new nag screen there has been a large uptick in package upgrades, and is helping flush the ecosystem of the old, deprecated packages. It is annoying, but it is working right now.
After the APIs are removed, this stuff will be a lot less invasive. The deprecation icon can just show in dev mode, the package upgrade link can go back to just a blue icon in the status bar, or we can come up with some way to auto-update the packages.
The ! feels unnecessary
Yeah, we should have these gone by tomorrow's release.
Could the "Check for updates" step happen automatically? Could updates be installed during relaunch or during idle time?
The main issue with auto updates is that of trust. Can we totally trust everything in the package store? What if someone makes a package, people install it, then the package is updated to do something totally sketchy? Viewing the updates for each package is the minimum gut check we can have the user do. If something looks off, they can disable.
When I click the notice in the status bar, I'm taken to this screen that runs an additional check for updates and then lists the packages that have updates. Does Atom need to run this check again since it knows I have a package that needs an update already?
Yeah, this is crappy for sure.
In the spirit of GitHub Zen, here are a few things to consider:
I agree with all of these. The noise at this time is necessary for the sake of user experience at the time of upgrade to the release with deprecated APIs removed. And there definitely needs to be work put into the update flow (app and packages).
The main issue with auto updates is that of trust. Can we totally trust everything in the package store?
Selectively. I suggest we have a "badge of honor" / "approved" system for packages. These packages get marked to be auto updated (eg. everything in AtomLinter should be trusted). Other packages can selectively have auto updates turned on / off.
A trust system seems like the easiest way to leap towards auto updating. There's a featured package section already – so I guess the folks at GitHub would be able to cherry pick what packages get approved.
Periodic code reviews could be automated, too, looking for possible exploits programmatically. Or, maybe, a “trusted package” update needs to be approved by GitHub after being pushed to apm.
Periodical code reviews could be automated, too, looking for possible
exploits programmatically. Or, maybe, a “trusted package” needs to be
reviewed by GitHub after updates are pushed to apm?
—
Reply to this email directly or view it on GitHub #6945 (comment).
Considering that Atom packages have full, unrestricted system access at the level of current user context, we would need to change the entire package model to be able to safely provide automated updates. We would need to switch to a sandbox model, and have each package request access to e.g. the filesystem via a gated API. That way, when the user installs a package, they're presented with the level of system access required by the package to make them aware of potential security vulnerabilities present after installing the package, and have them explicitly accept that risk.
I sure as hell don't want to be a victim of someone going rogue, pushing an update to their previously harmless package, that now executes e.g. rm -rf $HOME or something similar. There are extremely good reasons that all (sensible) software systems that provide autoupdates of third-party software use sandboxing (or similar) along the lines I outlined.
Yeah, I'm ➖💯 on the autoupdating packages (with the current security model, or lack thereof).
a “trusted package” update needs to be approved by GitHub after being pushed to apm.
This is too labor-intensive for us right now and prone to human error. @atom/core and @atom/non-github-maintainers are fully subscribed with core development and community management.
The best compromise that I personally see for the immediate future is something similar to the popup added recently, but dismissable for a period of time, kind of like this dialog in OS X (but with longer time periods):
In any case fully automatic package auto-update is also probably not something we'll pursue, at least with the current security model. Nathan is very interested in approaching the security model issues, and we have a GSoC student doing research as well.
What is to stop someone going rogue on a package you've already approved for file-system access? It's an endless rabbit hole.
Nothing, but then I've explicitly granted it filesystem access, and if such access is gated via a provided API it can have additional layers of "security" to (potentially) prevent evil. There are no easy answers here.
But all in all, I'm simply 👎 on this until we have an extremely good security model in place. Problem is that it will make it harder to develop packages, so I'm not convinced it's even worth the effort in the end, but maybe I can be convinced that it is, when we get the security discussion going again later this summer.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
winstliu commentedon May 25, 2015
a. has been discussed multiple times on Discuss - a good one is this topic.
b. I've been under the impression that the new notification is just a stopgap measure to encourage people to upgrade their packages until 1.0 is released.
c. Fully agree - I like the new text next to each item, but the
!seems over-the-top.d. See b.
Deprecation notice: I had that package disabled for a couple of months, precisely because it didn't really help me to know that xyz package was using a deprecated method. The only thing in there that is helpful to a normal user is the
your styles.less filenotice. It does help notifying package authors that their package has deprecations though.Package updates: Already reported in atom/settings-view#409.
@atom/feedback thoughts?
mark-hahn commentedon May 25, 2015
That was killing me. I save constantly, often in the middle of edits.
That syntax error popped up so often I couldn't edit. When combined with
the overall obnoxious intrusion of the pop-ups I have disabled them. I've
been doing just great without them.
I used to use the error-status package which only had a small bar above the
status bar which allowed me to keep working. That was awesome.
On Mon, May 25, 2015 at 12:26 PM, Wliu [email protected] wrote:
winstliu commentedon May 25, 2015
@mark-hahn I was referring to deprecation notices specifically, not the notifications (which I definitely agree can be annoying).
caged commentedon May 26, 2015
Cool. Seems like this could be disabled by default and conditionally enabled with the
--devflag since it's primary use is for development.Seems sensible to want to get everyone as up-to-date as possible. Seems Atom needs some type of information dialog that doesn't block content unless it's explicitly triggered by the user. For instance, maybe there's a persistent dialog that originates from above the status bar item it belongs to.
Awesome.
FWIW, I'm fine with closing this thread once it has outlived its usefulness.
benogle commentedon May 27, 2015
The upgrade nag notification and deprecation status bar icon will be going away soon, but are super necessary right now. We're on the cusp of removing all the old APIs (june 1), which would break a bunch of packages if we didnt do anything.
When we started tracking deprecations in analytics last week, we noticed that there were a ton of people using very very out of date packages. They had the latest version of atom, but were, say, using a months-old vim-mode version. Since the new nag screen there has been a large uptick in package upgrades, and is helping flush the ecosystem of the old, deprecated packages. It is annoying, but it is working right now.
After the APIs are removed, this stuff will be a lot less invasive. The deprecation icon can just show in dev mode, the package upgrade link can go back to just a blue icon in the status bar, or we can come up with some way to auto-update the packages.
Yeah, we should have these gone by tomorrow's release.
The main issue with auto updates is that of trust. Can we totally trust everything in the package store? What if someone makes a package, people install it, then the package is updated to do something totally sketchy? Viewing the updates for each package is the minimum gut check we can have the user do. If something looks off, they can disable.
Yeah, this is crappy for sure.
I agree with all of these. The noise at this time is necessary for the sake of user experience at the time of upgrade to the release with deprecated APIs removed. And there definitely needs to be work put into the update flow (app and packages).
mehcode commentedon May 27, 2015
Selectively. I suggest we have a "badge of honor" / "approved" system for packages. These packages get marked to be auto updated (eg. everything in AtomLinter should be trusted). Other packages can selectively have auto updates turned on / off.
Remove bang from deprecations number
Remove bang from package update indicator
Zireael07 commentedon May 27, 2015
@mehcode : +1.
thomaslindstrom commentedon May 28, 2015
@mehcode: 👍
A trust system seems like the easiest way to leap towards auto updating. There's a featured package section already – so I guess the folks at GitHub would be able to cherry pick what packages get approved.
Periodic code reviews could be automated, too, looking for possible exploits programmatically. Or, maybe, a “trusted package” update needs to be approved by GitHub after being pushed to
apm.mark-hahn commentedon May 28, 2015
This would be like approved repositories for linux distributions. They
work pretty well but you end up with really old versions of everything.
On Wed, May 27, 2015 at 6:23 PM, Thomas Lindstrøm [email protected]
wrote:
thomasjo commentedon May 28, 2015
Considering that Atom packages have full, unrestricted system access at the level of current user context, we would need to change the entire package model to be able to safely provide automated updates. We would need to switch to a sandbox model, and have each package request access to e.g. the filesystem via a gated API. That way, when the user installs a package, they're presented with the level of system access required by the package to make them aware of potential security vulnerabilities present after installing the package, and have them explicitly accept that risk.
I sure as hell don't want to be a victim of someone going rogue, pushing an update to their previously harmless package, that now executes e.g.
rm -rf $HOMEor something similar. There are extremely good reasons that all (sensible) software systems that provide autoupdates of third-party software use sandboxing (or similar) along the lines I outlined.Yeah, I'm ➖💯 on the autoupdating packages (with the current security model, or lack thereof).
mnquintana commentedon May 28, 2015
Refs #1763
mehcode commentedon May 28, 2015
What is to stop someone going rogue on a package you've already approved for file-system access? It's an endless rabbit hole.
I do like what @nathansobo outlined on #1763 (comment) and #1763 (comment)
thedaniel commentedon May 28, 2015
This is too labor-intensive for us right now and prone to human error. @atom/core and @atom/non-github-maintainers are fully subscribed with core development and community management.
The best compromise that I personally see for the immediate future is something similar to the popup added recently, but dismissable for a period of time, kind of like this dialog in OS X (but with longer time periods):
In any case fully automatic package auto-update is also probably not something we'll pursue, at least with the current security model. Nathan is very interested in approaching the security model issues, and we have a GSoC student doing research as well.
thomasjo commentedon May 28, 2015
Nothing, but then I've explicitly granted it filesystem access, and if such access is gated via a provided API it can have additional layers of "security" to (potentially) prevent evil. There are no easy answers here.
But all in all, I'm simply 👎 on this until we have an extremely good security model in place. Problem is that it will make it harder to develop packages, so I'm not convinced it's even worth the effort in the end, but maybe I can be convinced that it is, when we get the security discussion going again later this summer.
winstliu commentedon Aug 25, 2015
At this point I think the only issue left to tackle is the Package Updates one.
lock commentedon Apr 3, 2018
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!