Wedge

Public area => The Pub => Features => Topic started by: Arantor on October 29th, 2010, 01:02 PM

Title: Scheduled tasks interface
Post by: Arantor on October 29th, 2010, 01:02 PM
Two things should be done with scheduled tasks.

Firstly, there should be an extra field which holds the name of a file to load that contains the scheduled task function, so it doesn't have to be added to a file that will be known to be loaded when AutoTask() runs (i.e. ScheduledTask.php IIRC)

Secondly, there should be some kind of interface for the admin to actually add a new task that follows the above. Not quite sure how that squares out with respect to language strings, mind, but perhaps we could have each scheduled task broken into its own subfolder with its own language strings or something. Don't know yet about that (or maybe, just add the scheduled task's name/description into the DB)
Title: Re: Scheduled tasks interface
Post by: spuds on October 29th, 2010, 03:34 PM
Quote
Secondly, there should be some kind of interface for the admin to actually add a new task that follows the above. Not quite sure how that squares out with respect to language strings, mind, but perhaps we could have each scheduled task broken into its own subfolder with its own language strings or something. Don't know yet about that (or maybe, just add the scheduled task's name/description into the DB)
That would be a nice feature, its pretty cumbersome to add tasks today, maybe doing something via SSI as a thought so its mod accessible.  Also along those lines, adding/removing package servers from the admin interface would also nice feature.
Title: Re: Scheduled tasks interface
Post by: Arantor on October 29th, 2010, 07:16 PM
You already can add package servers via the admin UI...

The problem is that almost nobody knows how to add tasks, even when I documented it >_<
Title: Re: Scheduled tasks interface
Post by: spuds on October 30th, 2010, 01:55 AM
Then Kat is right, the admin UI does suck!
Title: Re: Scheduled tasks interface
Post by: Arantor on October 30th, 2010, 08:33 PM
Seriously? Admin > Packages > Download Packages... it's right there. How could it be more intuitive, exactly?

You have to go there to pick the server you want to browse...
Title: Re: Scheduled tasks interface
Post by: spuds on October 31st, 2010, 01:36 AM
Yeah ... probably not the best example of the various find waldo problems with that interface, I'm sure its programatically sequenced but often non intuitive, non natural (wrt other programs) for end users .... Anyway to me it should be

Admin > Packages > Options

Set the options of how I want packages, browsed, saved, installed, whatever ... done via options.  In that same package area there is the browse packages and installed packages tabs ... installed seems to just be a subset of whats in browse so I'm not sure why its there, I'm sure there is a reason but its not obvious to me.
Title: Re: Scheduled tasks interface
Post by: live627 on October 31st, 2010, 06:50 AM
Quote from spuds on October 31st, 2010, 01:36 AM
installed seems to just be a subset of whats in browse so I'm not sure why its there, I'm sure there is a reason but its not obvious to me.
*nods*

That section is kinda misleading... there is a mod by someone which groups the package listing
Title: Re: Scheduled tasks interface
Post by: YogiBear on October 31st, 2010, 12:51 PM
Quote from spuds on October 31st, 2010, 01:36 AM
...
 In that same package area ... and installed packages tabs ... installed seems to just be a subset of whats in browse so I'm not sure why its there, I'm sure there is a reason but its not obvious to me.
It occurs to me by relying on that screen a mod can be accidentally deleteted before firstly uninstalling it. It does seem confusing.
Title: Re: Scheduled tasks interface
Post by: Arantor on October 31st, 2010, 01:08 PM
Well, I have no idea what the hell the installed packages area is for. I'm of the view it probably should be ripped out.
Title: Re: Scheduled tasks interface
Post by: Dismal Shadow on October 31st, 2010, 10:19 PM
Quote from Arantor on October 31st, 2010, 01:08 PM
Well, I have no idea what the hell the installed packages area is for. I'm of the view it probably should be ripped out.
To see what mods are installed? :P
Title: Re: Scheduled tasks interface
Post by: Arantor on October 31st, 2010, 10:19 PM
And you can't do that from the browse page like the rest of us? :P
Title: Re: Scheduled tasks interface
Post by: Dismal Shadow on October 31st, 2010, 10:24 PM
Quote from Arantor on October 31st, 2010, 10:19 PM
And you can't do that from the browse page like the rest of us? :P
I can...even better with Sortable Packages. :D

You asked what it was for...which it serves no purpose, so rip it out. :)
Title: Re: Scheduled tasks interface
Post by: Nao on November 11th, 2010, 09:48 PM
Quote from spuds on October 31st, 2010, 01:36 AM
Yeah ... probably not the best example of the various find waldo problems with that interface, I'm sure its programatically sequenced but often non intuitive, non natural (wrt other programs) for end users ....
I think if one wants to be intuitive for end users, one would have to start renaming the "package" stuff...
We have "modifications" and "packages". Basically, one is contained within the other or something, but really, some people say "plugin", others say "extensions", others say "add-ons", but SMF chose to say "packages" which is probably not as intuitive as the rest... They should stick to 'mods' entirely or choose something else!

+1 to rip out the installed packages list. I never understood it, myself.
Title: Re: Scheduled tasks interface
Post by: Arantor on November 11th, 2010, 11:35 PM
There is a logic to it, albeit a twisted one.

* A mod is a set of instructions of how to modify the code in a certain way.
* A plugin is a drop-in extra that requires merely configuration and is often not directly involved in current operation.
* An extension is a mostly drop-in extra that takes current operation and extends its scope.
* A package (in SMF terms at least) is a bundle containing the information for one or more of the above.

I'd encourage us to run with 'plugin' as a term since that's closer to how I see it working but here's a thought. Something I suggested tongue-in-cheek during the latter days I was with SimpleDesk, after I'd started the plugin system there, was to rename it 'drawers' (as they fit into a desk).

Other systems name them differently, I seem to recall being told that PHP Fusion names them InFusions, so why not go nuts and think of a different name entirely.
Title: Re: Scheduled tasks interface
Post by: Nao on November 12th, 2010, 08:32 AM
Seriously, who would use "drawers" to discuss mods ;)
No, I think we should just use "mods" everywhere, including where "packages" is being used. Nobody cares about the container.

This is really where the issue is: there's already a name for these. Mods. "Packages" is barely used, and confusing. If you choose "Drawers", or "Cogs", or anything silly or not, newbies are still not going to understand it, just like "packages" is hard to understand... While "Modifications" is a bit easier, and "plugins/extensions/add-ons" DEFINITELY is easy to understand. That's what matters. Remember one of our mottos: if it needs explaining, then it's not good ;) (Interestingly, the iPod Touch comes without a proper manual... I was quite surprised with that. But it's really efficient, most of the time.)
Posted: November 12th, 2010, 08:22 AM

Maybe we could do this:
- We change the whole terminology to "Extensions" or "Addons".
- We then use two sub-genres.
- Some extensions will be called "modifications" or "mods". They're the addons that use a xml file to modify the Wedge code. No warranty is given as to what happens when you upgrade, and in case of conflicts. "It may work, but good luck".
- Other extensions, those without the xml modifications, will be called "plugins", will be showed as such in the admin, and will be properly supported by Wedge. We will encourage modders to release plugins.
Title: Re: Scheduled tasks interface
Post by: Arantor on November 12th, 2010, 09:00 AM
Quote
Seriously, who would use "drawers" to discuss mods
Me :P

The terminology you propose is good :)
Title: Re: Scheduled tasks interface
Post by: Nao on November 12th, 2010, 10:13 AM
Innit? :P

We'll have to remember this then.

What's going to be the main term? Extensions? Add-ons, or addons?
Title: Re: Scheduled tasks interface
Post by: Arantor on November 12th, 2010, 10:14 AM
Keep it simple: add-ons
Title: Re: Scheduled tasks interface
Post by: Nao on November 12th, 2010, 10:35 AM
Wiv ze hyphen?
Title: Re: Scheduled tasks interface
Post by: Arantor on November 12th, 2010, 10:53 AM
With the hyphen, but we shouldn't hyphenazis ;)
Title: Re: Scheduled tasks interface
Post by: Nao on November 12th, 2010, 11:53 AM
I don't see myself adding the hyphen manually every time... Houston we have a problem. :P

Is it grammatically wrong to say 'addon'?
Title: Re: Scheduled tasks interface
Post by: Arantor on November 12th, 2010, 11:57 AM
Well, it's not *wrong* but from where I'm sitting, add-on is technically correct, because it's something you add on; it's sort of converting between a noun and a verb.

Whereas 'addon' is neither, and in fact in some parts of the UK, it's a corruption of the verb 'to don' as in to wear.

Add-on is, in addition to being 'correct', is also more accepted since it's what Firefox uses (even if their site is addons.mozilla.org)

I'm not actually that bothered; I'd just always write it with the hyphen because to me that's how I think it should be, and why I said about not being a hyphenazi ;)
Title: Re: Scheduled tasks interface
Post by: Nao on November 12th, 2010, 03:19 PM
Yeah but we need an official terminology, so that'll be add-ons I guess ;)
Title: Re: Scheduled tasks interface
Post by: Arantor on October 9th, 2011, 04:00 PM
OK, dredging this one up.

I'm no longer convinced that it's actually necessary to revisit the scheduled tasks interface. See, it's all well and good being able to add a task but unless you've got some code to run it's not really worth it.

And with the plugin setup it's much easier to actually declare a scheduled task now (and if you're up to writing the code for a scheduled task to run, you're certainly capable of creating a minimalist plugin; there's a direct interface for receiving scheduled tasks in the XML structure of plugins, by design)
Title: Re: Scheduled tasks interface
Post by: Nao on October 9th, 2011, 06:27 PM
You can always write a ui for wedge 2 if you're bored Eheh.
Title: Re: Scheduled tasks interface
Post by: Arantor on October 9th, 2011, 06:32 PM
That's the thing: I'm just not seeing the point. Way back when I put this topic out there, the plugin manager wasn't even the merest glimmer of imagination in my brain, I certainly hadn't fleshed out the notion of being able to add a scheduled task from a plugin with three lines of XML.

The whole point about the scheduled tasks stuff is that it's designed to be run under a minimalist setup, so that having a UI for it seems counter-productive.