caelum / mamute

Q&A Engine
http://www.mamute.org/
Apache License 2.0
336 stars 152 forks source link

Message Properties not evaluating #110

Open matholt opened 9 years ago

matholt commented 9 years ago

We've seen a couple cases where a mamute-messages.properties value is not evaluated until you refresh the page.

We think this may occur after first starting the app.

An example would be the up-vote arrow for a user with no reputation showing: ???need.to_have??? 10 ???repuation_score???!

leocwolter commented 9 years ago

I didn't get it, the bundles are not being loaded at the first time you acess a page?

xdarklight commented 8 years ago

This seems to be a race condition and only a few places in Mamute are affected by this. The problem:

affected components:

Everything else seems to be inside an event, which means that these places will work if they are called after message loading has finished (obviously there will be that fallback text shown while the messages are still loading - but that's expected).

I would assume that in @matholt's case some network / server configuration issue prevented it from working correctly (he clicked a button with class .requires-karma is handled by links-behaviour.js which calls Messages.get() only inside an event).