-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
SERAC activities filtering does not work #909
Comments
@momomaniac @cbeauchesne on my local dev API I get a PGSQL error :
And also elasticsearch, when searching xreports, returns
instead of
Could you tell me if the dev is iso and the issue is also in production or if it's the dev which isn't up to date and the migration I should roll ? |
I am not working on the backend side. But having activities as an array rather than a single one is a good sign that some things were missed with last SERAC migration. |
The thing is that I found the migration script of this field, that's why I'm wondering if it's only on my dev or also in production ; cc @cbeauchesne |
It's also in prod. But my guess is that the elastic search part of that change has not be done |
Ah yes, indeed, what I saw is the sql migration
|
Yes, strange, I expect sawing an elasticsearch error Oo Is it the same error on prod, on a your dev env ? |
Sorry @cbeauchesne but I didn't understand your message. The file we are talking : https://github.com/c2corg/v6_api/blob/master/alembic_migration/versions/06d2a35e39c8_improve_serac_database.py ; haven't been ran ? |
Pretty sure it has ran, it's automatic. I need to make some tests, I'll try to find some timme this week |
Any news on this @cbeauchesne ? |
Hello @ataraxido , nice to see you on board, I've not been around a lot recently. I checked the db on demo and prod, they both do include the SERAC modifications: demo:
prod:
so I'm also quite surprised about the sqlalchemy error. |
for your local dev environment, you should check your docker-compose logs for alembic errors, maybe some db migration has gone wrong locally. you can check the alembic version on your composition with:
or you could try to force update the DB locally:
then you might see useful error messages. |
I checked the filters on the demo server, actually the elastic search mapping is up to date on demo, but not on prod (prod still has the old index definitions with field |
I did not update the syncer for the update following your work I wasn't aware of the need. So let's make the next update (which will update the syncer) and see if everything gets solved. |
OK, the syncer seems ok now. But only new activities are taken into account. |
hello Bruno,
yes, I'll have a quick look
…On Mon, Jan 4, 2021 at 9:26 AM Bruno Besson ***@***.***> wrote:
OK, the syncer seems ok now. But only new activities are taken into
account.
Would @momomaniac <https://github.com/momomaniac> or @cbeauchesne
<https://github.com/cbeauchesne> be able to write the code to run once
the query to index all previous serac reports?
I might be able to do it, but as I do not write any python this could take
a lot of useless time...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#909 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANY5RCSG2QAYY37KKGQ3FYTSYF3TBANCNFSM4TTYA7KQ>
.
|
Any news ? :) |
Up ! @momomaniac |
1 similar comment
Up ! @momomaniac |
oups, toujours aussi désolé.
ce WE je ne pourrai pas regarder, j'essaierai de trouver un peu de temps la
semaine prochaine.
…On Thu, Apr 1, 2021 at 2:50 PM Bruno Besson ***@***.***> wrote:
Up ! @momomaniac <https://github.com/momomaniac>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#909 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANY5RCWZJWEK4EQ3KLQBICTTGRTZDANCNFSM4TTYA7KQ>
.
|
Up @momomaniac ! Si tu as un peu de temps, ce serait cool de débloquer ce sujet. |
filtering xreports on activities returns no result : https://www.camptocamp.org/xreports?act=skitouring
maybe linked with the reorganization of activities dedicated to SERAC (c0f7e60 ?)
The text was updated successfully, but these errors were encountered: