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

Introduce ReadOnly property for form fields #165

Merged
merged 1 commit into from
Apr 29, 2021
Merged

Conversation

mickmister
Copy link
Contributor

@mickmister mickmister commented Apr 26, 2021

Summary

The ReadOnly field is already supported by the webapp and mobile app. This PR adds the missing ReadOnly field on the backend, as well as adding some constants for field types.

Ticket Link

Related Pull Requests

mattermost-community/mattermost-plugin-autolink#159

Copy link
Contributor

@hanzei hanzei left a comment

Choose a reason for hiding this comment

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

Are there client changes required for this?

@@ -22,6 +23,14 @@ const (

// A mattermost channel reference (~name).
FieldTypeChannel FieldType = "channel"

TextFieldSubtypeInput TextFieldSubtype = "input"
Copy link
Contributor

Choose a reason for hiding this comment

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

According to https://developers.mattermost.com/integrate/apps/interactivity/ the field is named text. Are the docs wrong?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, but it's documented as text there not input. Fixed in 3cda372 (#805)

@catalintomai catalintomai added this to the v0.5.0 milestone Apr 26, 2021
@mickmister mickmister added the Docs/Needed Requires documentation label Apr 26, 2021
Copy link

@DHaussermann DHaussermann left a comment

Choose a reason for hiding this comment

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

Tested and passed

LGTM!

@DHaussermann DHaussermann added 4: Reviews Complete All reviewers have approved the pull request and removed 3: QA Review Requires review by a QA tester labels Apr 26, 2021
@mickmister mickmister requested a review from hanzei April 26, 2021 23:01
@@ -22,6 +23,14 @@ const (

// A mattermost channel reference (~name).
FieldTypeChannel FieldType = "channel"

TextFieldSubtypeInput TextFieldSubtype = "input"
Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, but it's documented as text there not input. Fixed in 3cda372 (#805)

@hanzei hanzei removed the 2: Dev Review Requires review by a core committer label Apr 27, 2021
@mickmister mickmister merged commit 954c5b3 into master Apr 29, 2021
@mickmister mickmister deleted the autolink-updates branch April 29, 2021 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4: Reviews Complete All reviewers have approved the pull request Docs/Needed Requires documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants