orbeon / orbeon-forms

Orbeon Forms is an open source web forms solution. It includes an XForms engine, the Form Builder web-based form editor, and the Form Runner runtime.
http://www.orbeon.com/
GNU Lesser General Public License v2.1
514 stars 220 forks source link

Versioning: show version on Form Builder summary page #1795

Open ebruchez opened 10 years ago

ebruchez commented 10 years ago

Currently, the Form Builder Summary page doesn't show any published form version information.

One reason for this is that Form Builder deals with data stored in orbeon_form_data, and only pushes to orbeon_form_definition upon publish. So it doesn't have any information about published forms. This has been found confusing to some, BTW.

One way to change this would be to have FB only deal with orbeon_form_definition. We would need to:

However, this is a big task.

In the meanwhile, we could choose a simpler path, as follows:

ebruchez commented 10 years ago

See also #1138. The idea there was to run, on the FB Summary page, the /form API. This would allow us to show information which is directly in sync with published forms:

ebruchez commented 10 years ago

+1 from customer

ebruchez commented 10 years ago

If doing this, could also do #1100 at the same time.

ebruchez commented 10 years ago

Moving to 4.8 now, but we might ship it as a patch to customer before that.

ebruchez commented 9 years ago

Putting back 4.8 milestone as this is relatively high on customer priority. To review with @avernet.

ebruchez commented 9 years ago

+1 from customer

ebruchez commented 5 years ago

+1 from customer

ebruchez commented 2 years ago

We still have two possibilities, possibly not exclusive:

  1. What this issue is about, namely store a last-published-version metadata in the form definition. This as the benefit of simplicity, but the drawback of possible in correctness, for example if a form definition is published separately via the Publish API instead of directly from Form Builder.
  2. Using the Form Metadata API in the Form Builder Summary page to show the actual information about published form definitions and merge it.

Solution 1 appeared easier to implement, which is why we still considered it. See also this comment on #1138 regarding using stages.

avernet commented 2 years ago

About option 1 in https://github.com/orbeon/orbeon-forms/issues/1795#issuecomment-1086395852, I also favor ease of implementation, but it looks to me like such denormalization would create a number of issues down the road, in what we could think are corner cases, and I'd bet sure some customers will hit those corners ;). For instance, this information stored in the "Form Builder form definition" might get outdated on a remote when a new form definition is published from the Form Runner home page, or something changes at the databases-level or database-configuration-level (properties-local.xml changed to point to a different database for published forms, backup of published forms restored…).

tl;dr -1 on storing last-published-version metadata in the form definition