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 }}
Repository navigation
Communicate an extension's deprecated status #10551
Wade Anderson (@waderyan) We should probably also add a decoration to the extension in the list, not only in the editor. I'd make it less prominent, yet still catchy. I can sketch something up.
Akash (@AkashGutha) I'd not make it into a badge notification since it's not really urgent to the user.
From MP mail it looks like there is no difference to them between unpublish and deprecate. This means we can keep vsce the same, as the language is a sufficient warning.
read(`This will FOREVER delete '${ fullName }'! Are you sure? [y/N] `)
A UI change here will communicate the unpublish status.
I'd make it less prominent, yet still catchy. I can sketch something up.
Note:
API is providing an unpublished flag in the JSON response
Marketplace will use the language of "unpublished" so to stay consistent we should use "unpublished" and not use "deprecated."
The API will still give all extension in the result. The ones that are unpublished will include an unpublished flag as Wade mentioned. On the website we have logic to not display an extension in the results if it is unpublished. Ideally I think we should do so for the search on the editor side of things as well so that the results are consistent across the site and the editor.
In the extension query response there is a field called flags for each extensions. If an extension is unpublished the word "unpublished" will be present in the flags.
Ex: flags picked from another extension "flags": "validated, public, unpublished",
João Moreno (@joaomoreno) as Harysh Menon (@hamenon) said . it would better to implement the same kind of filtering on client side since the API doesn't provide a way to filter data on server side.
Client filtering works terribly in a paging UI. If the server says there are 10000 items, and we render a paging view for 10000 items, and it turns out that 100 need to be filtered out, how will they render when coming into view? An empty rectangle? An uninstallable extension?
Additionally, why would the server waste its time collecting and sending us data for which we have no use?
Server-side filtering is necessary for this to happen.
João Moreno (@joaomoreno) yes ! that is true. but the feature to be implemented this would be the only way till the visualstudio marketplace code is fixed.
Can't we do the filtering before rendering the UI. that should do the work.
Check each extension for unpublished flag, only add to the collection if it is is published.
Copying modigrv response here as well.
We can query to get just the published extensions, ie. exclude unpublished extensions.
For every extension which is unpublished, has a flag named Unpublished (0x1000).
In the extensions query we have made a separate filter named ExcludeWithFlags ( FilterType : 12) with value as the flag value to be excluded (Integer equivalent in string form) as “4096”, or if there are multiple flags to be excluded OR all of them and then use that integer value as value for the filter.
I think for your case only the FilterType : 12 and value : “4096” will do the work and exclude all extensions which are marked with unpublished flag.
Activity
AkashGutha commentedon Aug 15, 2016
How about a deprecation badge update ?
this should remove the necessity of manually checking the extensions every time.
joaomoreno commentedon Aug 16, 2016
Wade Anderson (@waderyan) We should probably also add a decoration to the extension in the list, not only in the editor. I'd make it less prominent, yet still catchy. I can sketch something up.
Akash (@AkashGutha) I'd not make it into a badge notification since it's not really urgent to the user.
waderyan commentedon Aug 16, 2016
From MP mail it looks like there is no difference to them between unpublish and deprecate. This means we can keep
vscethe same, as the language is a sufficient warning.A UI change here will communicate the
unpublishstatus.Sounds great.
waderyan commentedon Aug 29, 2016
FYI - this is what Atom does.
waderyan commentedon Sep 1, 2016
Ping Harysh Menon (@hamenon)
Note:
API is providing an
unpublishedflag in the JSON responseMarketplace will use the language of "unpublished" so to stay consistent we should use "unpublished" and not use "deprecated."
joaomoreno commentedon Sep 2, 2016
So... when people search for extensions, the unpublished ones will still appear in the results?
hamenon commentedon Sep 6, 2016
The API will still give all extension in the result. The ones that are unpublished will include an unpublished flag as Wade mentioned. On the website we have logic to not display an extension in the results if it is unpublished. Ideally I think we should do so for the search on the editor side of things as well so that the results are consistent across the site and the editor.
waderyan commentedon Sep 21, 2016
Harysh Menon (@hamenon) can you provide the exact syntax of the unpublished flag so we can get this in on our end?
hamenon commentedon Sep 27, 2016
In the extension query response there is a field called flags for each extensions. If an extension is unpublished the word "unpublished" will be present in the flags.
Ex: flags picked from another extension
"flags": "validated, public, unpublished",joaomoreno commentedon Sep 27, 2016
Thanks!
joaomoreno commentedon Sep 28, 2016
Harysh Menon (@hamenon) Is there any way I can query for all non
unpublishedextensions?joaomoreno commentedon Sep 29, 2016
Harysh Menon (@hamenon) Ping. Today's the last chance we could get it in the September release.
AkashGutha commentedon Sep 29, 2016
João Moreno (@joaomoreno) as Harysh Menon (@hamenon) said . it would better to implement the same kind of filtering on client side since the API doesn't provide a way to filter data on server side.
joaomoreno commentedon Sep 29, 2016
That's not so great.
Client filtering works terribly in a paging UI. If the server says there are 10000 items, and we render a paging view for 10000 items, and it turns out that 100 need to be filtered out, how will they render when coming into view? An empty rectangle? An uninstallable extension?
Additionally, why would the server waste its time collecting and sending us data for which we have no use?
Server-side filtering is necessary for this to happen.
AkashGutha commentedon Sep 29, 2016
João Moreno (@joaomoreno) yes ! that is true. but the feature to be implemented this would be the only way till the visualstudio marketplace code is fixed.
Can't we do the filtering before rendering the UI. that should do the work.
Check each extension for unpublished flag, only add to the collection if it is is published.
hamenon commentedon Sep 30, 2016
Copying modigrv response here as well.
We can query to get just the published extensions, ie. exclude unpublished extensions.
For every extension which is unpublished, has a flag named Unpublished (0x1000).
In the extensions query we have made a separate filter named ExcludeWithFlags ( FilterType : 12) with value as the flag value to be excluded (Integer equivalent in string form) as “4096”, or if there are multiple flags to be excluded OR all of them and then use that integer value as value for the filter.
I think for your case only the FilterType : 12 and value : “4096” will do the work and exclude all extensions which are marked with unpublished flag.