Skip to content
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

Fix reminders select query statement; closes #1614 #375

Closed

Conversation

gagnieray
Copy link
Collaborator

No description provided.

@gagnieray gagnieray force-pushed the feature/fix/1614 branch 2 times, most recently from 0009c92 to 0c856ed Compare December 2, 2023 20:21
@gagnieray gagnieray changed the title Try to fix select statement (WIP) ; refs #1614 Fix reminders select query statement; closes #1614 Dec 2, 2023
@gagnieray
Copy link
Collaborator Author

With this PR, everything seems to be working properly on my side ✌️
Now I need to have a look at the unit tests and understand why they are failing 😕

@gagnieray gagnieray marked this pull request as ready for review December 2, 2023 20:27
@gagnieray
Copy link
Collaborator Author

gagnieray commented Dec 2, 2023

Now I need to have a look at the unit tests and understand why they are failing 😕

Well... The tests are failing rightly 😞

With such a select query, this can only works when reminders are already existing in the database. Or in other words, this cannot work on a clean database or for the first reminders...

Another interesting point : MySQL and PostgreSQL are throwing error that MariaDB doesn't :
https://github.com/galette/galette/actions/runs/7072673252/job/19251767760?pr=375
https://github.com/galette/galette/actions/runs/7072673252/job/19251767994?pr=375
https://github.com/galette/galette/actions/runs/7072673252/job/19251767857?pr=375

@trasher
Copy link
Member

trasher commented Dec 3, 2023

[...]
Another interesting point : MySQL and PostgreSQL are throwing error that MariaDB doesn't : [...]

Oh :(

PostgreSQL always have failed as expected. For MySQL and MariaDB, with default configuration, only a Warning is emitted; therefore an extra check is done in tests:

Looks like this has changed somehow in MariaDB; I'll probably have to add a test on that getWarnings() method.

@trasher
Copy link
Member

trasher commented Dec 3, 2023

Now I need to have a look at the unit tests and understand why they are failing 😕

Well... The tests are failing rightly 😞

OK, well; but appart of that, would you be able to add a test case that is currently fixed by your proposal? Since #373 did not fix your issue; I guess my new test was wrong and I still have no idea how to reproduce...

@gagnieray
Copy link
Collaborator Author

Now I need to have a look at the unit tests and understand why they are failing 😕

Well... The tests are failing rightly 😞

OK, well; but appart of that, would you be able to add a test case that is currently fixed by your proposal? Since #373 did not fix your issue; I guess my new test was wrong and I still have no idea how to reproduce...

Please have a look at #376 😉

@trasher
Copy link
Member

trasher commented Dec 22, 2023

I keep this one open so I can take a look on it while trying to fix remaning cases

@trasher
Copy link
Member

trasher commented May 2, 2024

Since I've completely remove the "max" reminder type part of the query, this one is no longer needed.

The only remaining change is the a.date_echeance IS NOT NULL clause; but since new system relies on standard impending/late filters in use for years in the members list, I guess this case is not needed neither :)

@trasher trasher closed this May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants