-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimization of averaging code; set up & test the SW JS library #290
Conversation
Thanks for opening this pull request! |
@Georjane that looks perfect. Now you need to a) change the version number in package.json, and b) run |
Once we do that all and merge it, we can run the steps to publish to the NPM registry, which would be |
And just checking, sometimes it's a convention to merge to a |
Typically npm modules can just be left uncompiled if they're going to be used by another node-based environment. But since ours is designed to run in the browser, which can't do things like require other JS files using |
Hi @jywarren |
@jywarren @Tlazypanda |
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "spectral-workbench", | |||
"version": "0.2.2", | |||
"version": "0.2.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!!
This looks great. Let's merge and then I'll add you, then you should be able to check out your local main branch, run Then you should be able to run And in a few hours it'll appear as a dependabot PR on the rails app repo. Or we can manually trigger it! |
Congrats on merging your first pull request! 🙌🎉⚡️ |
Thanks @jywarren |
OK, I added you! Once you publish, you should momentarily see the version at https://www.npmjs.com/package/spectral-workbench/ go up by 0.0.1! |
So triggering dependabot is a bit obsure. But you can do it from this page: https://github.com/publiclab/spectral-workbench/network/updates |
Oh, odd - SWB doesn't have a javascript dependabot setting. I wonder why not? Usually it'll note yarn.lock or package.json, here I see only the Gemfile for Ruby dependencies... |
aha- sorry, actually it was misconfigured - we haven't been getting any JS updates at all! 😱 Not a huge deal, but you can see here, all are Ruby: https://github.com/publiclab/spectral-workbench/issues?q=label%3Adependencies+is%3Aclosed The difference is we only have bundler (for ruby gems) in the config file: https://github.com/publiclab/spectral-workbench/blob/4592de0b9471e49fc8c1146d9d7e296df5add9ef/.github/dependabot.yml#L3 vs. also including NPM as we do in plots2: https://github.com/publiclab/plots2/blob/5a4937bbc68d6348e0a7f9df05ae0d182c4539a7/.github/dependabot.yml#L46 I'm not sure how this happened but I'll change it now. |
Great - ok done and it's checking now. It might find a bunch of other JS ones that it prioritizes first, i'm not sure how it chooses which. |
Yes and they're starting to appear here: https://github.com/publiclab/spectral-workbench/pulls What we'll want to do is try installing it locally in a copy of the Rails app, to see if we can pull it in and if anything breaks. Ideally we can test out the thing you tweaked, but not a huge deal if not since it's such a small thing. Then once we can get the dependabot PR to pass tests (it can happen that we need to make fixes to the JS library and re-release a bugfix to our release, as There are a lot of steps here, but that's to help ensure things work properly along the way. |
I'm merging some so we get through all the backlog of JS dependabot updates. Many are for simple things or very small updates so we can be pretty sure. |
Well, I'm not sure why dependabot isn't picking it up. It's very low on the list alphabetically and in the listing at https://github.com/publiclab/spectral-workbench/blob/525dfe41e5d0259054c7ac7116caf6d3d4bbfa2c/package.json#L24 ...so maybe that's it. We can just do it manually this time, and maybe next time dependabot will have 'caught up'. To do it manually you can check out the main branch of spectral-workbench (the rails app) and then make a feature branch from it, then, update the package.json file to:
That way it'll force it to use at least the newest version. Then run |
There may be a rate limiting issue with dependabot so it's stopped fetching new version... i'm not totally sure. Sorry about this, it's a little more work than normal since this has not been done in so long!! |
Retriggered Dependabot now, fingers 🤞 |
I decided to open this manually in publiclab/spectral-workbench#865 -- will move there! |
Make sure these boxes are checked before your pull request is ready to be reviewed and merged. Thanks!
Please be sure you've reviewed our contribution guidelines at https://publiclab.org/wiki/contributing-to-public-lab-software
Please alert developers on [email protected] when your request is ready or if you need assistance.
Thanks!