Skip to content
This repository was archived by the owner on Jul 29, 2025. It is now read-only.

encrich member status update envent#23

Open
sophtron-jishun wants to merge 1 commit intomainfrom
jishun/dev
Open

encrich member status update envent#23
sophtron-jishun wants to merge 1 commit intomainfrom
jishun/dev

Conversation

@sophtron-jishun
Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread src/connect/views/connecting/Connecting.jsx Outdated
if (pollingState.previousResponse != null && statusChanged) {
sendPostMessage('connect/memberStatusUpdate', {
member_guid: pollingState.currentResponse.guid,
raw_status: pollingState.currentResponse.raw_status,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What are these extra properties used for?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

these expose underlying information as soon as they are available so that clients can start doing their requirements before the widget exit.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm going to need to know the specific use case and why it's absolutely necessary. If it is necessary, then we have to add it to our documentation, and we need to write e2e tests for it to make sure it continues to work. I can't ensure the proper documentation is written if I don't understand why it's necessary.

In a couple weeks we are going to release a new version of ucw-app that doesn't use this old widget anymore, because it uses the new connect widget npm package, so this event will disappear. Are we sure it's even worth adding if it's going to disappear in a couple weeks with the new version?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

these expose underlying information as soon as they are available so that clients can start doing their requirements before the widget exits, this is the specific use case, which is absolutely necessary because we have clients who uses this feature in the old version.
the widget is only a bigginning, at the end the client will use the connection information to call aggregator api and get the data.
the client wants to know the exact/original status from the aggregator so that they can properly use the API , and they want the information as soon as possible. once an account is selected from single_account_select, they will know immediately from this event instead of having to wait for the connection to finish, this saves up to a minute

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure if this was communicated after the meeting yesterday, but I think the best strategy for this client is to just fork both the frontend widget repo as well as ucw-app. I'm probably going to merge ucw-app 1.0 today with combo jobs, and this repo will no longer be relevant for the new version.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants