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

Show in design mode - Versions of installed plugins #68

Closed
tapirus opened this Issue Aug 1, 2012 · 10 comments

Comments

5 participants
@tapirus
Contributor

tapirus commented Aug 1, 2012

Wouldn't it be nice to have in design mode the version numbers of installed plugins displayed?
In the moment (wheels 1.1.8) there are only the names of installed plugin shown.

@andybellenie

This comment has been minimized.

Contributor

andybellenie commented Sep 19, 2012

Yes it would :)

@ghost ghost assigned andybellenie Sep 19, 2012

@rip747

This comment has been minimized.

rip747 commented Sep 19, 2012

can you assign this to me? i was working on this on a local branch.

@andybellenie

This comment has been minimized.

Contributor

andybellenie commented Sep 19, 2012

Hell yeah

@ghost ghost assigned rip747 Sep 19, 2012

@rip747

This comment has been minimized.

rip747 commented Oct 12, 2012

switching this over to 2.0 since i'm implementing foundry into wheels:

https://github.com/foundrycf/foundry

@andybellenie

This comment has been minimized.

Contributor

andybellenie commented Oct 12, 2012

??

@perdjurner

This comment has been minimized.

Contributor

perdjurner commented Jul 14, 2014

Note:

Best way to do this would be to change the application.wheels.plugins structure to not just store the plugin objects but make it a structure as well that stores the version number in one field and the object itself in another.

This change would be done in Plugins.cfc and then accessed in debug.cfm.

@perdjurner perdjurner modified the milestones: 1.2.0, 2.0.0, 1.3.0, 1.4.0 Jul 14, 2014

@perdjurner perdjurner removed this from the 1.4.0 milestone Apr 16, 2015

@neokoenig

This comment has been minimized.

Member

neokoenig commented May 2, 2017

A mere 4 and a half years later: with 2.x we now have the plugin version number in the box.json file, so we could pull ancillary data from there: failing that we could then just read the version number off the corresponding .zip file... add to 2.x?

@perdjurner

This comment has been minimized.

Contributor

perdjurner commented May 2, 2017

Sure, we're not in a feature freeze yet :)

@neokoenig neokoenig self-assigned this May 2, 2017

@neokoenig neokoenig added this to the 2.0.0 Beta 1 milestone May 2, 2017

neokoenig added a commit that referenced this issue May 2, 2017

@neokoenig neokoenig added the docs label May 2, 2017

@neokoenig

This comment has been minimized.

Member

neokoenig commented May 2, 2017

Now done, if there's a corresponding box.json file (which all new plugins from 2.x should have). I've skipped the version number when there's no box.json as we want to encourage that for the future. There's now application.wheels.pluginMeta struct which includes the deserialized box.json content - so plugin authors can now easily use that information in their plugins if they want.

So to access the plugin meta, you can do

// Version Number
application.wheels.pluginMeta["pluginName"]["version"];

// Meta Struct from box.json
application.wheels.pluginMeta["pluginName"]["boxjson"];
@neokoenig

This comment has been minimized.

Member

neokoenig commented May 2, 2017

@neokoenig neokoenig closed this May 2, 2017

@neokoenig neokoenig modified the milestones: 2.0.0, 2.0.0 Beta 1 May 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment