Skip to content
emmagcta edited this page Mar 12, 2019 · 1 revision
  • Each publication and method should log its details:

logger.info(PUB[${this.userId}]: name, params); logger.info(METHOD[${this.userId}]: name, params);

  • Each method call should use Bert to report succes/error as below. err can be a string or an exception.

import Alert from '/imports/ui/alert';

Alert.error(err); Alert.success('Question updated');

  • If you make a call to edit/remove HMIS item you need to update local (client side) collection to reflect the changes. Ie.

Clients._collection.update(client._id, { $set: result }); // eslint-disable-line

  • Use authorize key in a router to check user permissions:

authorize: { allow() { return Roles.userIsInRole(Meteor.userId(), ResponsesAccessRoles); }, },

Clone this wiki locally