Files
wekan/models/scrumSprints.js
T
Lauri Ojansivu be5842616b Record daily Scrum observations with scoped history reads
Keep the first actual observation of each UTC day, preserve unknown estimates, and bound history reads. Verify retry and concurrent capture behavior with MongoDB and reader permissions with Chromium.

Thanks to xet7 !
2026-09-27 22:20:46 +03:00

15 lines
573 B
JavaScript

import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
// Server methods own validation, authorization, revisions and lifecycle snapshots.
const ScrumSprints = new Mongo.Collection('scrumSprints');
if (Meteor.isServer) {
const { ensureIndex } = require('/server/lib/mongoStartup');
ScrumSprints.deny({ insert: () => true, update: () => true, remove: () => true });
Meteor.startup(async () => {
await ensureIndex(ScrumSprints, { boardId: 1 });
await ensureIndex(ScrumSprints, { state: 1, _id: 1 });
});
}
export default ScrumSprints;