-
Notifications
You must be signed in to change notification settings - Fork 2
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
missingStringPhetioElements "density.general.model.strings.densityBuoyancyCommon.averageStringProperty" #175
Comments
Ok. I understand the problem. It is annoying but likely not too troublesome. Info:
To proceed:
|
Using this script I found one other problem with const fs = require( 'fs' );
const axios = require( 'axios' );
axios.get( 'https://phet.colorado.edu/sims/html/density/latest/english-string-map.json' ).then( response => {
const releaseBranchStrings = response.data;
const raw = fs.readFileSync( '../density-buoyancy-common/density-buoyancy-common-strings_en.json' );
const mainStrings = JSON.parse( raw );
const requireJSNamespace = 'DENSITY_BUOYANCY_COMMON/'
Object.keys( releaseBranchStrings ).forEach( releaseBranchString => {
if ( releaseBranchString.startsWith( requireJSNamespace ) ) {
const stringKey = releaseBranchString.replace( requireJSNamespace, '' );
if ( !mainStrings.hasOwnProperty( stringKey ) ) {
console.log( 'not found on main: ', stringKey );
}
}
} );
} ) I'll go ahead and add back that string, and we can get rid of it when we publish Density 1.2 |
Signed-off-by: Michael Kauzmann <[email protected]>
@samreid can you think of anything else here? |
Thanks for reminding me that the strings are taken from main, I forgot about that when advising @AgustinVallejo to rename keys. I'm ready to close the issue, but let's make sure @AgustinVallejo is aware of #175 (comment) first. |
Really interesting read, I double and triple checked that 'Average' was not used in density, because I'm aware of how stringKeys are really sensitive to deletions or changes due to translations. Will be very careful with DBC from now on, thanks! closing |
In #153 the averageStringProperty became systemAStringProperty in eecee72. But now the migration wrapper says:
missingStringPhetioElements
"density.general.model.strings.densityBuoyancyCommon.averageStringProperty"
Does density 1.1 use the string
average
? How should we proceed?The text was updated successfully, but these errors were encountered: