On Wed, Aug 20, 2008 at 2:20 PM, Roan Kattouw <
roan.kattouw@...> wrote:
> About enabling the edit API on Wikipedia: I think it's ready to go. The
> only real problem it currently has is that action=edit doesn't handle
> aborts by hooks too well; the edit will be aborted, but the client will
> only get a vague "A hook aborted the action" (or something along those
> lines) error. A hook that allows for aborting the edit with a meaningful
> error message has been added (APIEditBeforeSave), but AFAIK it's
> currently only used by ConfirmEdit (and only because I migrated it
> myself). Similarly, extensions influencing other actions may rely on UI
> hooks that the API bypasses altogether.
Um, why are you adding an API-specific hook for this? Shouldn't it be
a backend hook? I'm not sure why there should be *any* API hooks,
actually, since the API should just be presenting backend information
in a standard format. Extensions should never want to change the
format that's returned, as far as I can imagine, since it's supposed
to be uniform across all wikis. They should only want to change the
actual info, which should be done on the backend level.
_______________________________________________
Wikitech-l mailing list
Wikitech-l@...
https://lists.wikimedia.org/mailman/listinfo/wikitech-l