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: Create UCR for System Events for Devices #779

Merged

Conversation

lenny-goodell
Copy link
Member

Prerequsit for #581

Signed-off-by: Leonard Goodell leonard.goodell@intel.com

If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-docs/blob/main/.github/Contributing.md

PR Checklist

Please check if your PR fulfills the following requirements:

  • Changes have been rendered and validated locally using mkdocs-material (see edgex-docs README)

Prerequsit for edgexfoundry#581

Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
@lenny-goodell lenny-goodell force-pushed the System-Events-for-Devices-UCR branch from 028dc3b to 19d639d Compare June 22, 2022 22:36
docs_src/design/TOC.md Outdated Show resolved Hide resolved
docs_src/design/ucr/0001-System-Events-for-Devices.md Outdated Show resolved Hide resolved
Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
@lenny-goodell lenny-goodell requested a review from bnevis-i June 27, 2022 21:31
bnevis-i
bnevis-i previously approved these changes Jun 27, 2022
Copy link
Member

@farshidtz farshidtz left a comment

Choose a reason for hiding this comment

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

Looks good overall. I've made several inline comments.

docs_src/design/ucr/0001-System-Events-for-Devices.md Outdated Show resolved Hide resolved
docs_src/design/ucr/0001-System-Events-for-Devices.md Outdated Show resolved Hide resolved
docs_src/design/ucr/0001-System-Events-for-Devices.md Outdated Show resolved Hide resolved
docs_src/design/ucr/0001-System-Events-for-Devices.md Outdated Show resolved Hide resolved
docs_src/design/ucr/0001-System-Events-for-Devices.md Outdated Show resolved Hide resolved
Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
bnevis-i
bnevis-i previously approved these changes Jun 29, 2022
ajcasagrande
ajcasagrande previously approved these changes Jun 30, 2022
docs_src/design/ucr/0001-System-Events-for-Devices.md Outdated Show resolved Hide resolved
Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
farshidtz
farshidtz previously approved these changes Jul 5, 2022
jpwhitemn
jpwhitemn previously approved these changes Jul 6, 2022
@JamesKButcher
Copy link
Contributor

Hi @lenny-intel
Some use cases we're seeing relate to being made aware when a device service becomes disconnected from a device. For example when there is a network disconnect between the Modbus Device Service and the Modbus device. Do you think that would be covered by this UCR, or would it warrant a separate use case?

@lenny-goodell
Copy link
Member Author

Do you think that would be covered by this UCR, or would it warrant a separate use case?

@JamesKButcher , Would you also want Connected and Reconnected for that use case? I do think that is a slightly different Use Case, but does it warrant a separate UCR document? @farshidtz , thoughts?

@farshidtz
Copy link
Member

Do you think that would be covered by this UCR, or would it warrant a separate use case?

@JamesKButcher , Would you also want Connected and Reconnected for that use case? I do think that is a slightly different Use Case, but does it warrant a separate UCR document? @farshidtz , thoughts?

I think it does make sense to have another UCR document since those aren't about onboarding. At the same time, the UCR title is generic (System Events for Devices) rather than something line "Onboarding System Events for Devices". We could change the title to allow future separate UCRs. Alternatively, we could amend this UCR in a future revision (the new process allows that) to cover connection events.

If we do extend this one right now, we need to further discuss to understand what events are needed. For example, why do we need to distinguish between Connected and Reconnected? Do we need Disconnected too? Should there be a configurable timeout before a device is considered disconnected, to avoid getting numerous events when the connection is unstable? Does Deleted event imply Disconnected?

IMO, if we add a separate UCR or amend this one later, we wouldn't need another ADR since the architecture to support it would become available via the ADR that will design how to tackle system events.

@lenny-goodell
Copy link
Member Author

IMO, if we add a separate UCR or amend this one later, we wouldn't need another ADR since the architecture to support it would become available via the ADR that will design how to tackle system events.

Yea, after thinking about this, I agree as separate UCR doc is warranted. Thinking the Device DTO needs the connection status, then the Updated system event would be sent when the Device Service changes the connection status.

@JamesKButcher
Copy link
Contributor

@lenny-intel @farshidtz ok happy with that. Approved from my perspective

JamesKButcher
JamesKButcher previously approved these changes Jul 7, 2022
@lenny-goodell
Copy link
Member Author

recheck

@TomBrennan-Eaton
Copy link
Contributor

Would it be within the scope of this UCR to say that the Subscription is required to have the usual CRUD operations?
And whether multiple subscriptions should be handled with separate requests and Identifiers, or done by updating the one subscription for the initiating service?

@lenny-goodell
Copy link
Member Author

Would it be within the scope of this UCR to say that the Subscription is required to have the usual CRUD operations? And whether multiple subscriptions should be handled with separate requests and Identifiers, or done by updating the one subscription for the initiating service?

I think those are design details on show the subscription is accomplished. i.e. message bus or some notification service. For this use case It just need to subscribe, details on how are TBD on the ADR.

iain-anderson
iain-anderson previously approved these changes Jul 11, 2022
Signed-off-by: Leonard Goodell <leonard.goodell@intel.com>
@lenny-goodell lenny-goodell merged commit 8198dd9 into edgexfoundry:main Jul 11, 2022
@lenny-goodell lenny-goodell deleted the System-Events-for-Devices-UCR branch July 11, 2022 16:54
edgex-jenkins added a commit that referenced this pull request Jul 11, 2022
…s-UCR

Signed-off-by: edgex-jenkins <collab-it+edgex@linuxfoundation.org>
@farshidtz farshidtz added the UCR Use Case Record label Sep 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UCR Use Case Record
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants