Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

make Widget/Integration mgr optional (#3224) #3235

Merged
merged 4 commits into from
Aug 1, 2019

Conversation

BillCarsonFr
Copy link
Member

@BillCarsonFr BillCarsonFr commented Jul 30, 2019

Fixes #3224

Make widget/integration manager optional.
Integration manager is read from preferences with default values to new vector integration server.
Integration (Matrix app / stickers) ui elements are removed when no integration manager is defined

image

image

@BillCarsonFr BillCarsonFr requested a review from manuroe July 30, 2019 10:51
@BillCarsonFr BillCarsonFr force-pushed the feature/integration_mgr_3224 branch from d61eaa2 to 952a256 Compare July 30, 2019 12:06
@@ -809,6 +809,7 @@
<string name="settings_logged_in">Logged in as</string>
<string name="settings_home_server">Home Server</string>
<string name="settings_identity_server">Identity Server</string>
<string name="settings_integration_server">Integration Server</string>
Copy link
Member

Choose a reason for hiding this comment

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

"Integration Manager"

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@@ -14,8 +14,7 @@
<string name="bug_report_url" translatable="false">https://riot.im/bugreports/submit</string>

<!-- Widget urls -->
<string name="integrations_ui_url" translatable="false">"https://scalar.vector.im/"</string>
<string name="integrations_rest_url" translatable="false">"https://scalar.vector.im/api"</string>
<string name="integration_server_url" translatable="false">"https://scalar.vector.im"</string>
Copy link
Member

Choose a reason for hiding this comment

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

I would prefer that we keep 2 app settings for the moment. One for the UI. One for the API.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok, changed to use 3 settings (added integrations_jitsi_widget_url)


val config = IntegrationManagerConfig(
uiUrl = "$serverURL/",
apiUrl = "$serverURL/api",
Copy link
Member

Choose a reason for hiding this comment

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

That seems a bit dangerous atm. /api suffix is not guaranteed.
This is something that will change but not before phase:2

Copy link
Member Author

Choose a reason for hiding this comment

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

changed

@BillCarsonFr BillCarsonFr requested a review from manuroe July 31, 2019 08:31
@BillCarsonFr BillCarsonFr merged commit 775419f into develop Aug 1, 2019
@BillCarsonFr BillCarsonFr deleted the feature/integration_mgr_3224 branch August 1, 2019 08:14
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.

Make sure there are no ugly edge cases running Riot without an integrations manager
2 participants