Skip to content

Conversation

@ngeorges-cnrs
Copy link
Contributor

An admin tool to manage VIP apps

  • See readme and inline --help for usage
  • Self-contained in vipapps/vipapps.py
  • Depends on vipclient, with a minor patch for generic GET/PUT requests

- Self-contained in vipapps/vipapps.py
- Depends on vipclient, with a minor patch for generic GET/PUT requests
- Add requirements.txt
- Add --public=true/false to define the value of the public field
  when creating an app. As for --groups or --owner, this is currently
  only valid on creation, not on update; and it will use the same value
  for all apps.
- Add --verbose flag and shown PUT requests bodies only when this flag is
  set. Previously, these messages were conditionned by --dry-run.
- Remove --show-unchanged, instead show those with --verbose.
- Ignore rows with a bank descriptor
- Adjust some warning and error messages
- Add settings and source fields in appversion, with related
  command-line flags on all relevant commands. The source field is
  optional if vip-portal doesn't support it yet
- Preserve doi field
- sync_index: Add support for per-row values for resources, settings,
  and source
@ngeorges-cnrs
Copy link
Contributor Author

Some updates in vipapps.py today, everything is backwards-compatible so I pushed on the present PR :

  • Add --settings= and --source= flags in all import commands
  • Preserve doi field when overwriting an appversion (previous version would clear this on PUT)
  • Update sync_index command to allow optional resources, settings and source columns in the CSV file. This allows to define application-specific values on each row for these fields. See here for an example.

import_file/sync_index/sync_dir commands would previously overwrite
the top-level application record when importing a new app version.
This patch fixes that: a top-level application record can now only be
created, once, when it doesn't exist, and never updated afterwards.
Changes in bean/Application.java,
virtual-imaging-platform/VIP-portal#560:
- Remove isPublic field.
- Rename applicationGroups to groups (+groupNames on read).
  When creating a new app, only the name field is set in group
  objects.
@ngeorges-cnrs
Copy link
Contributor Author

Extra commit a06ef7b : adjust for changes in the Application object in virtual-imaging-platform/VIP-portal#560.

@axlbonnet axlbonnet merged commit 7e799af into virtual-imaging-platform:develop Jun 27, 2025
1 check passed
@ngeorges-cnrs ngeorges-cnrs deleted the vipapps branch June 27, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants