← Back to team overview

touch-packages team mailing list archive

[Bug 1466124] Re: Expose --progress settings in the global config

 

** Summary changed:

- Please provide a way to get the progress in used from a plugin
+ Expose --progress settings in the global config

** Description changed:

  For snappy we use a plugin to apply the upgrade.  I.e. we set:
  """
  [hooks]
  apply: ubuntucoreupgrader.apply.ApplyUpgrade
  """
  
- We also send progress data in the form of spinner json progress
- data. In our system-image-snappy-cli  fork we set what progress
- into the config and query it later from the plugin to know if
- it should send progress reporting or not. It would be nice if
- s-i 3.0 could do the same.
+ Because this plugin also wants to output progress as JSON data, it needs
+ to know what --progress settings the user has chosen on the command
+ line.  This is currently not easily accessible.
  
- I hope this bugreport is not too confused, if it is, please let me know.
- 
- It might be as simple as in main.py:
- """
- config.progress += meter
- """
+ The request is to make the --progress options available in the global
+ config object, which would be easily accessible by the plugin.

** Tags added: client

** Also affects: ubuntu-system-image
   Importance: Undecided
       Status: New

** No longer affects: system-image (Ubuntu)

** Changed in: ubuntu-system-image
    Milestone: None => 3.1

** Changed in: ubuntu-system-image
   Importance: Undecided => Wishlist

** Changed in: ubuntu-system-image
       Status: New => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to system-image in Ubuntu.
https://bugs.launchpad.net/bugs/1466124

Title:
  Expose --progress settings in the global config

Status in Ubuntu system image (server/client/updater):
  Triaged

Bug description:
  For snappy we use a plugin to apply the upgrade.  I.e. we set:
  """
  [hooks]
  apply: ubuntucoreupgrader.apply.ApplyUpgrade
  """

  Because this plugin also wants to output progress as JSON data, it
  needs to know what --progress settings the user has chosen on the
  command line.  This is currently not easily accessible.

  The request is to make the --progress options available in the global
  config object, which would be easily accessible by the plugin.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-system-image/+bug/1466124/+subscriptions


References