Consult these notes when migrating to new versions of the template.
Log in into the Parse Dashboard (/dashboard) and click “Jobs” in the side menu.
You should run (once) the following Jobs
: “migratePlaceCategories”, “SetPlaceIsFeaturedDefaultValue”, “addReviewStatus” and “addGeoIndex”.
Click the “Run now” button to start the migration. You can see the progress in the “Job Status” section.
Now, go to the Browser tab and click “Create class”. Choose “Custom” type, enter “Package” in the name field and click on “create class”. Repeat the same process to add the “UserPackage” class.
Log in into the Parse Dashboard (/dashboard) and click “Jobs” in the side menu. You should see two jobs: “addRatingAvgToPlaces” and “setTypeFieldToUsers”.
Click the “Run now” button to start the migration. You can see the progress in the “Job Status” section.
The “addRatingAvgToPlaces” job will iterate all places and add the “ratingAvg” field according to the ratingCount and ratingTotal. This new field is used to filter/sort places by rating.
The “setTypeFieldToUsers” job will iterate all users and add the “type” field. Now there’re three different types: super_admin
, admin
y client
.
The jobs are defined in ./cloud/place.js and ./cloud/user.js.
Finally, in the side menu click on “Create a Class” and add the following classes: “Report”, “Page”, and “SlideIntro”.