Skip to content

widget describe shows the installed widget definition without saying it is version specific #1944

Backlog

Description

@GlennCorvers

Description

mxcli widget describe <widget> prints an MDL example from the definition of the widget version that is currently installed in the project, not from the version that is about to be installed. After upgrading a widget in the Marketplace, the printed example can contain properties the new version no longer has.

Steps to reproduce

  1. Project with the Maps widget 3.2.2 installed.
  2. Run mxcli widget describe maps. The printed MDL example contains advanced: false.
  3. Install Maps 5.0.0 (mxcli marketplace install 108261 --version 5.0.0) and compare with the package: its Maps.xml has no property with key advanced.
  4. Using the printed example against 5.0.0 refers to a property that does not exist.

Expected

Either a note in the output that the definition is version specific (and which version it was read from), or a hint to run widget init after installing a new version so the definition is refreshed.

Actual

The example is shown without any version note, so it looks valid for the version you are about to install.

Environment

  • mxcli v0.33.0
  • Mendix 11.16.1
  • Windows 11

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions