-
Notifications
You must be signed in to change notification settings - Fork 294
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
Add dialog extension #2663
base: master
Are you sure you want to change the base?
Add dialog extension #2663
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a test case in QuestionnaireEditAdapterTest.kt
?
FORK - With unmerged PR #9 - WUP #13 SDK - WUP google#2178 - WUP google#2650 - WUP google#2663 PERF - WUP google#2669 - WUP google#2565 - WUP google#2561 - WUP google#2535
- With unmerged PR #9 - WUP #13 - WUP google#2178 - WUP google#2650 - WUP google#2663
This SDK PRs are included: google/android-fhir#2645 google/android-fhir#2663
FORK - With unmerged PR #9 - WUP #13 SDK - WUP google#2178 - WUP google#2650 - WUP google#2663 PERF - WUP google#2669 - WUP google#2565 - WUP google#2561 - WUP google#2535
As discussed, we should use dialog extension instead of adding a dialog item control type |
FORK - With unmerged PR #9 - WUP #13 SDK - WUP google#2178 - WUP google#2650 - WUP google#2663 - WUP google#2689
FORK - With unmerged PR #9 - WUP #13 SDK - WUP google#2178 - WUP google#2650 - WUP google#2663 - WUP google#2689 - WUP google#2645
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you pls add some documentation in the docs folder (this will be automatically published on our doc site)?
@@ -496,6 +497,84 @@ class QuestionnaireEditAdapterTest { | |||
.isEqualTo(QuestionnaireViewHolderType.DROP_DOWN.value) | |||
} | |||
|
|||
@Suppress("ktlint:standard:max-line-length") | |||
@Test | |||
fun getItemViewType_choiceItemType_itemControlExtensionWithRadioButton_andDialogExtension_shouldReturnDialogSelectViewHolderType() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use backtick notation for test names:
fun `should do something`
@@ -496,6 +497,84 @@ class QuestionnaireEditAdapterTest { | |||
.isEqualTo(QuestionnaireViewHolderType.DROP_DOWN.value) | |||
} | |||
|
|||
@Suppress("ktlint:standard:max-line-length") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can remove this if you follow the next comment.
@@ -61,6 +61,9 @@ internal const val EXTENSION_ITEM_CONTROL_URL_ANDROID_FHIR = | |||
internal const val EXTENSION_ITEM_CONTROL_SYSTEM_ANDROID_FHIR = | |||
"https://github.com/google/android-fhir/questionnaire-item-control" | |||
|
|||
internal const val EXTENSION_DIALOG_URL_ANDROID_FHIR = | |||
"https://github.com/google/android-fhir/dialog" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep extension urls in the same "namespace". see the location widget extension.
"https://github.com/google/android-fhir/dialog" | |
"https://github.com/google/android-fhir/StructureDefinition/dialog" |
IMPORTANT: All PRs must be linked to an issue (except for extremely trivial and straightforward changes).
Fixes #2662
Description
FHIR Chat discussion about adding
dialog
control type to Jira:https://chat.fhir.org/#narrow/stream/179255-questionnaire/topic/dialog.20item.20control
Alternative(s) considered
N/A
Type
Feature
Screenshots (if applicable)
Checklist
./gradlew spotlessApply
and./gradlew spotlessCheck
to check my code follows the style guide of this project../gradlew check
and./gradlew connectedCheck
to test my changes locally.