https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38424

Jonathan Druart <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #174414|0                           |1
        is obsolete|                            |

--- Comment #3 from Jonathan Druart <[email protected]> ---
Created attachment 174789
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=174789&action=edit
Bug 38424: Upgrade redoclyly/cli version to latest stable

This patch updates the used version of redocly/cli to the latest stable.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ yarn api:bundle
=> FAIL: You get

```
yarn run v1.22.22
$ redocly bundle --ext json api/v1/swagger/swagger.yaml --output
api/v1/swagger/swagger_bundle.json

    ╔════════════════════════════════════════════════════════╗
    ║                                                        ║
    ║  A new version of Redocly CLI (1.25.11) is available.  ║
    ║  Update now: `npm i -g @redocly/cli@latest`.           ║
    ║  Changelog: https://redocly.com/docs/cli/changelog/    ║
    ║                                                        ║
    ╚════════════════════════════════════════════════════════╝

bundling api/v1/swagger/swagger.yaml...
📦 Created a bundle for api/v1/swagger/swagger.yaml at
api/v1/swagger/swagger_bundle.json 207ms.
Done in 1.34s.
```

3. Apply this patch
4. Run:
  k$ sudo yarn install --modules-folder /kohadevbox/node_modules
5. Repeat 2:
=> SUCCESS: You get

```
yarn run v1.22.22
$ redocly bundle --ext json api/v1/swagger/swagger.yaml --output
api/v1/swagger/swagger_bundle.json
bundling api/v1/swagger/swagger.yaml...
📦 Created a bundle for api/v1/swagger/swagger.yaml at
api/v1/swagger/swagger_bundle.json 200ms.
Done in 1.29s.
```

6. Restart plack and check the API loads without issues:
  k$ koha-plack --restart kohadev;  tail -f /var/log/koha/kohadev/*.log
7. Run the tests:
  k$ prove -r t/db_dependent/api/
=> SUCCESS: No failures
8. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <[email protected]>

Signed-off-by: Jonathan Druart <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to