Skip to content

Commit

Permalink
Merge pull request #1595 from diffgram/fix-global-object-attribute-up…
Browse files Browse the repository at this point in the history
…dates

Fix global object attribute updates in some contexts
  • Loading branch information
oss-maintainer-12 committed Feb 27, 2024
2 parents 9af083c + 7ecd6cc commit e008c1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions frontend/src/components/annotation/annotation_ui_factory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,15 @@ export default Vue.extend({
video_data,
}
const [result, error] = await saveFileAnnotations(this.computed_project_string_id, this.root_file.id, payload)
AnnotationSavePrechecks.add_ids_to_new_instances_and_delete_old(
result,
false,
this.annotation_ui_context.compound_global_attributes_instance_list,
false,
false
)
this.root_file.instance_list = this.annotation_ui_context.compound_global_attributes_instance_list
if (error) {
console.error(error)
Expand Down
2 changes: 1 addition & 1 deletion shared/database/event/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def new(session,
session.flush()
Event.track_user(event, email)
logger.debug(f'Created event {event.id}:{event.kind}')
event.send_to_eventhub()
#event.send_to_eventhub()
event.broadcast()
return event

Expand Down

0 comments on commit e008c1f

Please sign in to comment.