Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-28733 : Admin Advisor v2 #6461

Merged
merged 25 commits into from
Sep 25, 2020
Merged

Conversation

catalintomai
Copy link
Contributor

@catalintomai catalintomai commented Sep 16, 2020

@catalintomai catalintomai added this to the v5.28 milestone Sep 16, 2020
Copy link
Contributor

@hahmadia hahmadia left a comment

Choose a reason for hiding this comment

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

Some small suggestions made. Let me know if you have any questions.

components/warn_metric_ack_modal/warn_metric_ack_modal.tsx Outdated Show resolved Hide resolved
components/warn_metric_ack_modal/warn_metric_ack_modal.tsx Outdated Show resolved Hide resolved
components/warn_metric_ack_modal/warn_metric_ack_modal.tsx Outdated Show resolved Hide resolved
components/warn_metric_ack_modal/warn_metric_ack_modal.tsx Outdated Show resolved Hide resolved
components/warn_metric_ack_modal/warn_metric_ack_modal.tsx Outdated Show resolved Hide resolved
@hahmadia
Copy link
Contributor

@jasonblais Tag you for review as requested

i18n/en.json Outdated Show resolved Hide resolved
/>
<FormattedMessage
id={'announcement_bar.warn_metric_status_ack.text'}
defaultMessage={'Thank you for contacting Mattermost. We will follow up with you soon.'}
Copy link
Contributor

Choose a reason for hiding this comment

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

We're not going to mention that they're going to need to install a different instance? What's up with that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll defer to @esadur and @jasonblais on this, they review the texts.

Copy link
Contributor

Choose a reason for hiding this comment

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

@mkraft, I'm not sure I understand the concern, can you elaborate a bit?

Copy link
Contributor

Choose a reason for hiding this comment

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

We are linking to documentation in almost all cases so that they can explore the feature and determine if it would be valuable to them. I would rather lead with the value of the features in question so they can make that determination for themselves.

/>
<FormattedMarkdownMessage
id={t('announcement_bar.error.number_active_users_warn_metric_status.text')}
defaultMessage={'You now have over {limit} users. We strongly recommend using advanced features for large-scale servers.'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Users are more likely to take action if you tell them exactly what you want them to do and why. This is so vague we're making them interpret it for themselves and it's not clear what we're asking of them.

/>
<FormattedMarkdownMessage
id={t('announcement_bar.number_of_posts_warn_metric_status.text')}
defaultMessage={'You now have over {limit} posts. We strongly recommend using advanced features for large-scale servers.'}
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here.

components/warn_metric_ack_modal/warn_metric_ack_modal.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@hahmadia hahmadia left a comment

Choose a reason for hiding this comment

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

Nice improvements. Just some syntax stuff and the typescript optional operator (I believe we should use it due to our move to typescript and it makes sense I feel).

render() {
const isE0Edition = (this.props.enterpriseReady && this.props.license && this.props.license.IsLicensed === 'false');
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see why we can't take advantage of optional chaining regardless of the pattern? I noticed we are using license?. in other parts of code too? I'm not sure what pattern you are actually referring too.
image

I thought we were moving towards using optional chaining with the move towards typescript anyways.

@@ -176,9 +211,13 @@ class ConfigurationAnnouncementBar extends React.PureComponent {
/>
);
}
if (this.props.license.IsLicensed === 'false' && this.props.warnMetricsStatus) {
if (this.props.license &&
this.props.license.IsLicensed === 'false' &&
Copy link
Contributor

Choose a reason for hiding this comment

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

See above comment

components/warn_metric_ack_modal/warn_metric_ack_modal.tsx Outdated Show resolved Hide resolved
components/warn_metric_ack_modal/warn_metric_ack_modal.tsx Outdated Show resolved Hide resolved
components/warn_metric_ack_modal/warn_metric_ack_modal.tsx Outdated Show resolved Hide resolved
components/warn_metric_ack_modal/warn_metric_ack_modal.tsx Outdated Show resolved Hide resolved
Copy link
Contributor

@hahmadia hahmadia left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the fixes. I still feel we should use the optional chaining for typescript however if you feel it's better not, then we can leave it. Maybe @mkraft can give his opinion if he has any otherwise no more changes I can see that need to be made.

Edit Maybe just update redux hash to get your build passing

Copy link
Contributor

@srkgupta srkgupta left a comment

Choose a reason for hiding this comment

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

Tested the updated PR along with it's dependent PRs and all the issues are now fixed and are working fine. Approving the PR.

@srkgupta srkgupta removed the 3: QA Review Requires review by a QA tester label Sep 24, 2020
@amyblais
Copy link
Member

@mkraft Kind note to review for v5.28.

@amyblais amyblais added CherryPick/Approved Meant for the quality or patch release tracked in the milestone and removed 2: Dev Review Requires review by a core commiter labels Sep 24, 2020
@catalintomai catalintomai merged commit 3b866f3 into mattermost:master Sep 25, 2020
@mattermod
Copy link
Contributor

Cherry pick is scheduled.

mattermost-build pushed a commit to mattermost-build/mattermost-webapp that referenced this pull request Sep 25, 2020
@mattermod mattermod added CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone and removed CherryPick/Approved Meant for the quality or patch release tracked in the milestone labels Sep 25, 2020
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels Sep 25, 2020
catalintomai pushed a commit that referenced this pull request Sep 25, 2020
Tak-Iwamoto pushed a commit to Tak-Iwamoto/mattermost-webapp that referenced this pull request Sep 28, 2020
…o MM-20457

* 'master' of github.com:Tak-Iwamoto/mattermost-webapp:
  [MM-28680] fix blank page on undefined message (mattermost#6450)
  MM-28733 : Admin Advisor v2 (mattermost#6461)
  MM 20547 user settings security ts (mattermost#6216)
  MM-20904 Add E2E tests for custom categories (mattermost#5981)
  Update NOTICE.txt (mattermost#6550)
  Check if emojiMap is undefined before invoking method for it (mattermost#6495)
  [MM-28151] Cypress/E2E: Automate backlogs - System Console > User Password (mattermost#6538)
  [MM-28295] e2e/messaging/reactions: add reactions spec (mattermost#6535)
  [MM-28706] revert ordering change for `in:` auto-suggest search results (mattermost#6493)
  Remove usage of t function with useIntl (mattermost#6552)
  MM-28992 Remove unused notPresent and mustBePresent props from MultiSelectSetting (mattermost#6544)
  MM-27530 Fix for Multiselect items not scrolling into view on arrow keys (mattermost#6286)
  Demoting failed test from prod (mattermost#6534)
  migrate show_more to typescript (mattermost#6501)
  [MM-28878] Revert style change to remove next steps arrow (mattermost#6527)
  [MM-28972] Added 'Always On' option for new sidebar (mattermost#6530)
  MM-28839 Fix for hover of cursor on indicators (mattermost#6524)
  [MM-28790] allow plugins to open in a different tab (mattermost#6476)
  MM-28290 Always update team member unread counts when added to a channel (mattermost#6500)
Tak-Iwamoto pushed a commit to Tak-Iwamoto/mattermost-webapp that referenced this pull request Sep 28, 2020
…o MM-20462

* 'master' of github.com:Tak-Iwamoto/mattermost-webapp:
  fix getType is not a function (mattermost#6566)
  MM-29028 Remove findDOMNode from Slack import (mattermost#6554)
  MM-28997 Remove references to old context API (mattermost#6545)
  Add custom slash command tests (mattermost#6391)
  Cypress/E2E: Fix guest experience ui spec (mattermost#6563)
  [MM-28784] Migrate string refs to functional ones (mattermost#6494)
  [MM-28680] fix blank page on undefined message (mattermost#6450)
  MM-28733 : Admin Advisor v2 (mattermost#6461)
  MM 20547 user settings security ts (mattermost#6216)
  MM-20904 Add E2E tests for custom categories (mattermost#5981)
  Update NOTICE.txt (mattermost#6550)
  Check if emojiMap is undefined before invoking method for it (mattermost#6495)
  [MM-28151] Cypress/E2E: Automate backlogs - System Console > User Password (mattermost#6538)
  [MM-28295] e2e/messaging/reactions: add reactions spec (mattermost#6535)
  [MM-28706] revert ordering change for `in:` auto-suggest search results (mattermost#6493)
  Remove usage of t function with useIntl (mattermost#6552)
  MM-28992 Remove unused notPresent and mustBePresent props from MultiSelectSetting (mattermost#6544)
  MM-27530 Fix for Multiselect items not scrolling into view on arrow keys (mattermost#6286)
  Demoting failed test from prod (mattermost#6534)
jfrerich pushed a commit that referenced this pull request Oct 23, 2020
calebroseland pushed a commit that referenced this pull request Oct 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Changelog/Done Required changelog entry has been written CherryPick/Done Successfully cherry-picked to the quality or patch release tracked in the milestone Docs/Not Needed Does not require documentation
Projects
None yet
8 participants