Bugzilla – Attachment 171683 Details for
Bug 37856
Some SUSHI providers require the platform parameter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37856: Add service_platform field
Bug-37856-Add-serviceplatform-field.patch (text/plain), 4.56 KB, created by
Pedro Amorim
on 2024-09-18 16:14:17 UTC
(
hide
)
Description:
Bug 37856: Add service_platform field
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-09-18 16:14:17 UTC
Size:
4.56 KB
patch
obsolete
>From f7681dd58e705651e642ffa859fe37ac6c1e0b15 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 18 Sep 2024 15:56:19 +0000 >Subject: [PATCH] Bug 37856: Add service_platform field > >The change from this patch itself should be self-explanatory. >Testing for this requires credentials to a specific provider. >But the parameter is only added to the URL if defined. > >Test plan, ktd, apply patch, run: >$ yarn js:build >$ yarn api:bundle >$ koha-plack --restart kohadev > >1) Enable ERMModule >2) Create a new provider, visit: ><staff_url>/cgi-bin/koha/erm/eusage/usage_data_providers/add >3) Ensure 'Service platform' now shows. Create the provider and put something in this field. >4) View the provider, ensure the field is shown, visit: ><staff_url>/cgi-bin/koha/erm/eusage/usage_data_providers/1 > >Ensure all tests are still passing: >$ cypress run --spec t/cypress/integration/ERM/DataProviders_spec.ts >$ prove t/db_dependent/api/v1/erm_usage_* >--- > api/v1/swagger/definitions/erm_usage_data_provider.yaml | 5 +++++ > installer/data/mysql/kohastructure.sql | 1 + > .../ERM/UsageStatisticsDataProviderDetails.vue | 6 ++++++ > .../ERM/UsageStatisticsDataProvidersFormAdd.vue | 9 +++++++++ > 4 files changed, 21 insertions(+) > >diff --git a/api/v1/swagger/definitions/erm_usage_data_provider.yaml b/api/v1/swagger/definitions/erm_usage_data_provider.yaml >index baa6c5d092..ed6bdfe570 100644 >--- a/api/v1/swagger/definitions/erm_usage_data_provider.yaml >+++ b/api/v1/swagger/definitions/erm_usage_data_provider.yaml >@@ -73,6 +73,11 @@ properties: > type: > - string > - "null" >+ service_platform: >+ description: service platform of the harvester >+ type: >+ - string >+ - "null" > metric_type: > description: metric type of the harvester when reporting > type: >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 2b2175fe2f..31f0828a24 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -3215,6 +3215,7 @@ CREATE TABLE `erm_usage_data_providers` ( > `requestor_name` varchar(80) DEFAULT NULL COMMENT 'requestor name', > `requestor_email` varchar(80) DEFAULT NULL COMMENT 'requestor email', > `report_types` varchar(255) DEFAULT NULL COMMENT 'report types provided by the harvester', >+ `service_platform` varchar(80) DEFAULT NULL COMMENT 'platform if provider requires it', > PRIMARY KEY (`erm_usage_data_provider_id`) > ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; > /*!40101 SET character_set_client = @saved_cs_client */; >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProviderDetails.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProviderDetails.vue >index 9190f5834a..3032b8d668 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProviderDetails.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProviderDetails.vue >@@ -32,6 +32,12 @@ > {{ usage_data_provider.report_types }} > </span> > </li> >+ <li> >+ <label>{{ $__("Service platform") }}:</label> >+ <span id="service_platform"> >+ {{ usage_data_provider.service_platform }} >+ </span> >+ </li> > </ol> > </fieldset> > <legend>{{ $__("SUSHI credentials") }}</legend> >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue >index ab042e8f62..b0c35107f5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue >@@ -118,6 +118,15 @@ > :disabled="!selected_provider && !manual_form" > /> > </li> >+ <li> >+ <label for="usage_data_provider_service_platform" >+ >{{ $__("Service platform") }}: >+ </label> >+ <input >+ id="usage_data_provider_service_platform" >+ v-model="usage_data_provider.service_platform" >+ /> >+ </li> > <li> > <label > class="required" >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37856
:
171680
|
171681
|
171682
|
171683
|
171773
|
171774
|
171775
|
171893
|
171894
|
171895
|
171896
|
171897
|
171898
|
171899
|
172040
|
172042
|
172043
|
172044
|
172045
|
172046
|
172047
|
172048
|
172155
|
172156
|
172215