Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(active): emit annotations_active_change with fileVersionId #509

Merged
merged 3 commits into from
Jun 16, 2020

Conversation

ConradJChan
Copy link
Contributor

@ConradJChan ConradJChan commented Jun 5, 2020

  • Modified annotations_active_change event to send the annotated fileVersionId along with the annotationId
  • Also modified BaseAnnotator to prefer the fileOptions.<fileId>.fileVersionId over the file.file_version.id

@ConradJChan ConradJChan requested a review from a team as a code owner June 5, 2020 21:14
jstoffan
jstoffan previously approved these changes Jun 5, 2020

if (prevActiveAnnotationId !== nextActiveAnnotationId) {
eventManager.emit(Event.ACTIVE_CHANGE, nextActiveAnnotationId);
eventManager.emit(Event.ACTIVE_CHANGE, { annotationId: nextActiveAnnotationId, fileVersionId });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a breaking change. Do you plan to merge/release both this and BUIE at the same time?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, will need to bump both at the same time

src/store/eventing/active.ts Show resolved Hide resolved
src/store/eventing/__tests__/active-test.ts Outdated Show resolved Hide resolved
jstoffan
jstoffan previously approved these changes Jun 10, 2020
src/common/BaseAnnotator.ts Outdated Show resolved Hide resolved
src/store/eventing/active.ts Show resolved Hide resolved
jstoffan
jstoffan previously approved these changes Jun 10, 2020
src/store/eventing/__tests__/active-test.ts Outdated Show resolved Hide resolved
src/store/annotations/__mocks__/annotations.ts Outdated Show resolved Hide resolved
@ConradJChan ConradJChan force-pushed the active-annotation-file-version-id branch from bbf4e3c to c65bad8 Compare June 10, 2020 18:29
@mergify mergify bot merged commit f18ed1f into box:master Jun 16, 2020
@ConradJChan ConradJChan deleted the active-annotation-file-version-id branch June 17, 2020 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants