govuk-prototype-kit icon indicating copy to clipboard operation
govuk-prototype-kit copied to clipboard

Plugin versions not updating on /plugins and /plugins-installed...

Open JodiB-TPR opened this issue 1 year ago • 2 comments

Description of the issue

I recently downgraded from v4.7.0 to v4.6 of GOV.UK Frontend and restarted my kit. However, the version shown on the plugins pages still shows v4.7.0.

Steps to reproduce the issue

  1. In terminal on Mac, run npm install [email protected]
  2. Watch as it runs and shows as successful:
added 1 package, changed 1 package, and audited 537 packages in 1s

128 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
  1. Restart Companion Kit (Ctrl + C then npm run dev)
  2. Go to prototype in browser and refresh / hard refresh the /plugins and /plugins-installed pages
  3. See no change in version displayed Screen Shot 2023-09-22 at 11 20 59 AM Screen Shot 2023-09-22 at 11 21 40 AM

Actual vs expected behaviour

I'd expect to see the version updated to reflect v4.6 and for there to be an "update available" message displayed.

Environment (where applicable)

  • Operating system: macOS Monterey v12.6.9
  • Browser: Chrome
  • Browser version: Version 117.0.5938.88 (Official Build) (x86_64)
  • GOV.UK Prototype Kit version: 13.13.3

JodiB-TPR avatar Sep 22 '23 10:09 JodiB-TPR

I cannot reproduce this in the wild. I did the following steps to an older v13 prototype I had locally:

  • Upgraded to the latest version of GOV.UK Prototype Kit (v13.3.3) from the plugins page
  • Upgraded to the latest version of GOV.UK Front end (v4.7.0) from the plugins page
  • Downgraded GOV.UK Frontend to v4.6.0 using the cli command stated in this issue npm install [email protected]
  • Waited for the prototype to restart in the terminal (I could have restarted it manually, but either case would have worked)
  • Refreshed the plugins page (note this does not happen automatically, it never has and is not a bug)
  • The plugins page now shows GOV.UK Frontend as version v4.6.0 as expected

BenSurgisonGDS avatar Sep 25 '23 16:09 BenSurgisonGDS

I've repeated all of the above steps on my Mac and it still works as expected.

oli-rose28 avatar Sep 26 '23 10:09 oli-rose28