bnapora
02/15/2024, 11:29 PMnode5585
02/16/2024, 12:52 AMaddBackgroundJobs -> addSubscriptionJobs which only has a clause preventing Subscription execution for `AuditEvent`'s (likely to prevent execution loop)
https://github.com/medplum/medplum/blob/7fdb50c28e8211733ef69b7d9a20cae67d3d2a07/packages/server/src/workers/subscription.ts#L146-L150bnapora
02/16/2024, 12:59 AMrahul1
02/16/2024, 5:33 PMbnapora
02/16/2024, 5:41 PMstartNewUser or startGoogleLogin a User resource is created, but no Subscription event fires. Do you think this is intentional?bnapora
02/16/2024, 6:32 PMstartGoogleLogin (possibly others), the resource is created WITHOUT a meta.project value. It does have a project.reference value. The getSubscriptions method is only checking for subscriptions if there is a value in meta.project field. If no value, then no subscriptions retrieved. If User resources is "edited" in Admin app, then a meta.project value is added to the User resource, and a subscription is triggered. I will create an issue.