Conversation
|
@twothreenine @lentschi FYI: see #1199 (comment) and onwards on the juggling of branches. |
|
Added @robwa too, if you are able 😁 |
EDIT: Ah, sorry - just saw, that you're cherry-picking from 4.x, but still: Haven't these changes been reviewed elsewhere and if so, how can we find the reviews to check if the cherry-picks could cause trouble in this case? |
|
Cherry picking is done separately. I am reviewing those as we speak 😁 As soon as I re-push that branch, I encountered an issue, I will add the commits as well. Only a few but some do bother the FCAN users at this time. As long as v4 is not abandonded adding (minor) improvements is not a bad thing, in my book anyway. Part of the fixing/improving here was also meant as a way to get a bit better acquinted with the code. It is not imperative but does provide a few minor tweaks. I did find an issue yesterday, I left a Mollie specific item in there by accident, which I am going to address soon. Again also part of me getting to understand the plugin idea a bit better. As a side note: while cleaning up the release4 confusion I also killed the |
(cherry picked from commit 95fbefc59b70d1ea22d25ce591ee4d2cdb72120b)
* Correct and add missing translations * Typo (cherry picked from commit 12f907d9a80ba7c5beb011ca7248732574b99874)
…cally (#1078) * Update _form.html.haml: sort ordergroup names alphabetically * Update _form.html.haml: replaced sort_by() by order() --------- Co-authored-by: lentschi <office@florian-lentsch.at> (cherry picked from commit f1e025d1d37b7740944c8bab3371b297f5dfae2c)
(cherry picked from commit 890c652fc0600cf1bb2699183d9488645da38c1d)
|
@lentschi Any idea why this spec is failing? It doesn't locally. |
@RayOei Hm... Not right away.
|
As for the test failing: "Order sends mail if min_order_quantity has been reached". It doesn't fail locally. It is part of the code I haven't looked into so I don't yet know what the flow should be and how this could fail. But it is somewhat confusing that it all passes when run locally. That should not be different, unless there is a reason it is and I missed that? |
Okay, I just set everything up and it does fail on my machine too - here are all the commands I executed to get there: git clone git@github.com:foodcoops/foodsoft.git -s foodsoft_4.x
cd foodsoft_4.x/
git checkout v4.9.2
git show | head -1
# confirm you're on the same revision as this PR:
# -> commit 600c8382b2c85171e79f5fc708ae8bde508eb545
# then set everything up and run the tests:
docker compose -f docker-compose-dev.yml up -d mariadb
docker compose -f docker-compose-dev.yml run --rm foodsoft bundle install
docker compose -f docker-compose-dev.yml run --rm foodsoft bundle exec rake foodsoft:setup_development_docker
docker compose -f docker-compose-dev.yml run --rm mariadb mariadb --host=mariadb --password=secret --execute="CREATE DATABASE test"
docker compose -f docker-compose-dev.yml run --rm foodsoft bundle exec rake db:schema:load RAILS_ENV=test DATABASE_URL=mysql2://root:secret@mariadb/test?encoding=utf8mb4
docker compose -f docker-compose-dev.yml run --rm foodsoft bundle exec rake rspec-rerun:spec RAILS_ENV=test DATABASE_URL=mysql2://root:secret@mariadb/test?encoding=utf8mb4... which ultimately leads to the same error as the GitHub pipeline: So, the most likely cause for this to fail, is that you're not on a clean working directory of 600c838. Other than that it might be a race condition due the difference in processor speed or something, but that's rather unlikely. |
What exactly are those "some fixes and improvements" you're referring to here? (What was the process to pick them and who picked them?) Let me mention one random example: IMO 4.x should only contain urgent hotfixes (and I don't think the sample I picked is one of them - I think that's rather a nice-to-have). (And even if we did pick some commits into 4.x, then it's not a good idea to do it in a bulk PR. It should be separate cherry-pick PRs then.) |
|
They are picked on the basis that our foodcoop has a serious user problems with some issues besides the Mollie issue costing us money every week. All main issues are mentioned in the PR. |
|
@RayOei If there are "serious user issues" then fixing them in 4.x is, of course, valid. 👍 However, I stand by what I wrote above:
|
Bumped to 4.9.2
Note: merging to main release branch/trunk for future
v4.xreleases.Update:
Cherry-pick #1169
Cherry-pick #1178
Cherry-pick # 1166
Fix #1179
Fix #1181
Fix #1080