Fix mapping exception, subscribed feed timestamp filter, and fallback for mobile
We basically have 3 different problems here
- The API logic has changed for the timestamp filters so this is causing an issue with the mobile portrait feed
- Inconsistency in params: For the subscribed feed we are expecting the to_timestamp and the from_timestamp in seconds and milliseconds respectively.
- I noticed that if we don't send the sync=1 parameter the endpoint throws a 500 error for the subscribed feed. It seems to be a problem casting the entities because it's trying to access a protected property.
In this MR:
- I added a fallback for mobile in order to filter using only the to_timestamp like it was working before
- I removed the * 1000 for the to_timestamp param if it is not using the fallback (in order to spect both parameters in milliseconds)
- I added a __get to the FeedSyncEntity to be able to access the properties from the outside but not to change them. (Please check if this is what we want/need)
closes #2047 (closed)
Edited by Martin Santangelo