Bug 39438: (bug 38446 follow-up) Add agreement_period to /erm/extended_attribute_types

Sponsored-by: Karlsruhe Institute of Technology (KIT)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-11-04 16:19:30 +01:00 committed by Lucas Gass
parent b44f85e1b2
commit e7325583f3
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
3 changed files with 9 additions and 2 deletions

View File

@ -101,7 +101,7 @@ List the ERM-related additional fields, can be filtered using the resource_type
sub list_erm {
my ($self) = @_;
my $c = shift->openapi->valid_input or return;
my @resource_types = qw(erm_licenses erm_agreements erm_packages erm_titles);
my @resource_types = qw(erm_licenses erm_agreements erm_agreement_periods erm_titles erm_packages);
return try {
my $additional_fields_set = $self->_list(@resource_types);

View File

@ -16,6 +16,7 @@
enum:
- license
- agreement
- agreement_period
- package
- title
- $ref: "../swagger.yaml#/parameters/match"

View File

@ -41,7 +41,13 @@ export class AdditionalFieldsAPIClientWrapper {
getModuleName(resource_type) {
const moduleMappings = {
erm: ["agreement", "license", "package", "title"],
erm: [
"agreement",
"agreement_period",
"license",
"package",
"title",
],
acquisition: ["vendor"],
};