-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can't save strings #359
Comments
This seems to be an issue with Shared Strings and Common Strings. |
That is super helpful! Thanks! |
I suppose the first place to look is the client-side |
I am not able to reproduce locally with a config that is probably different from what's on Ox-Dev. I will try to reproduce on Ox-Dev. |
I just tried to reproduce on Ox-Dev, and I am seeing that sim-specific strings are also not saving. Specifically, I tried saving the value of Diffusion for
|
The next step is to log the translation form data we get back from the server to verify the saved translation isn't being retrieved from the database. If it isn't we need to figure out why. |
I went back today and tried again--sim specific strings aren't saving. I must have seen my changes in the form because I had pressed publish. Sorry! |
I checked, and the translation form data I'm getting back from the server-side code has:
But in the database:
Next place to look (and probably log/debug) would be |
Okay, here's an idea: What if local check-login data is different from Ox-Dev check-login data? That might explain why I'm not seeing this issue locally, and the filer (see below) might be wrong on Ox-Dev. // Try to get saved translation in short-term storage database.
const filter = {
userId: userId.toString(), // The user ID should be a string since it's a string we get from website user data.
simName: simName,
locale: locale
};
const savedTranslation = await shortTermStringStorageCollection.findOne( filter ); |
I don't think this is the case. I hit the check-login route, and my user ID was a string. Next step is to log the filter then try to use the filter to find the saved translation. |
Oh, this is very sad:
654321 is from the mock website user data. Indeed, the environment config key is set to development:
Mystery solved, I think. I will set it to production and try to reproduce the problem. |
I switched the environment config key to production:
And now I'm seeing the saved translation showing up:
|
This looks good in round 3. Will reopen if something else comes up. |
Test device
MacBook Air (m1 chip)
Operating System
13.1
Browser
safari 16.2
Problem description
For phetsims/qa#878, translations are not saving even though the "Translation Saved" message appears on the screen.
Steps to reproduce
Here is an example:
The text was updated successfully, but these errors were encountered: