Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-431

CLI should WARN about usage deprecated api

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • CLI
    • None

      We added support for deprecating resources/attributes/operations/parameters some time ago.
      I would be a good thing that we would warn users if they are using deprecated API.
      Every resource/attribute/operation/param that is deprecated has extra element "deprecated" in metadata
      With sub elements

      • "since", which tells in what version it was deprecated
      • "reason", text description why it is deprecated.

      Reason in most cases also tells what is new replacement.

      This should be only displayed in case of interactive shell usage.
      Unless there is also some special CLI log file, it could be part of that even for non-interactive usage

            jdenise@redhat.com Jean Francois Denise
            tomazcerar Tomaž Cerar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: