Skip to content

Conversation

Copy link
Contributor

@lunaticusgreen lunaticusgreen left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented Mar 12, 2020

Codecov Report

Merging #629 into PMM-2.0 will decrease coverage by 0.06%.
The diff coverage is 33.33%.

Impacted file tree graph

@@             Coverage Diff             @@
##           PMM-2.0     #629      +/-   ##
===========================================
- Coverage    34.08%   34.01%   -0.07%     
===========================================
  Files           39       39              
  Lines         1018     1020       +2     
  Branches       139      140       +1     
===========================================
  Hits           347      347              
- Misses         643      645       +2     
  Partials        28       28              
Impacted Files Coverage Δ
...ddInstance/AddRemoteInstance/AddRemoteInstance.tsx 27.38% <33.33%> (-0.67%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 505bdae...25978a3. Read the comment docs.

Copy link
Member

@BupycHuk BupycHuk left a comment

Choose a reason for hiding this comment

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

These fields will be shown for all MySQL Remote services, not only for RDS.

@askomorokhov askomorokhov requested a review from BupycHuk March 16, 2020 14:45
</>
);
case 'MySQL':
if (remoteInstanceCredentials.isRDS) {
Copy link
Member

Choose a reason for hiding this comment

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

What do you think about this? @lunaticusgreen

Suggested change
if (remoteInstanceCredentials.isRDS) {
return (
<>
<CheckboxField form={form} label={'Use performance schema'} name="qan_mysql_perfschema" />
<span className="description"></span>
(remoteInstanceCredentials.isRDS ? (
<CheckboxField form={form} label={'Disable Basic Metrics'} name="disable_basic_metrics" />
<span className="description"></span>
<CheckboxField form={form} label={'Disable Enhanced Metrics'} name="disable_enhanced_metrics" />
<span className="description"></span>
) : (Null))
</>
);

Copy link
Member

Choose a reason for hiding this comment

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

@BupycHuk
There is no such thing as (Null) in js. What dit you mean?

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks ok, but instead of Null you have to use null

Copy link
Member

Choose a reason for hiding this comment

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

null

@AlekSi AlekSi requested a review from BupycHuk March 24, 2020 09:23
@AlekSi
Copy link
Contributor

AlekSi commented Mar 24, 2020

CI fails hard

@AlekSi
Copy link
Contributor

AlekSi commented Mar 24, 2020

@BupycHuk @atymchuk Why do we update code there by hands, and don't use code generated from Swagger spec?

@ademidoff
Copy link
Member

ademidoff commented Mar 24, 2020

@BupycHuk @atymchuk Why do we update code there by hands, and don't use code generated from Swagger spec?

@AlekSi Try to be explicit: it's very hard to guess without clear pointers to the code.

@BupycHuk
Copy link
Member

I think @lunaticusgreen should know answer

@AlekSi
Copy link
Contributor

AlekSi commented Mar 24, 2020

Try to be explicit: it's very hard to guess without clear pointers to the code.

Well, I can't give you a clear pointer to the absence something. :) Here is a Swagger spec: https://github.com/percona/pmm/blob/PMM-2.0/api/swagger/swagger.json We generate code from it and use that generated code – but not in that PR. Why?

@askomorokhov askomorokhov merged commit 67204e2 into PMM-2.0 Apr 6, 2020
@askomorokhov askomorokhov deleted the PMM-4145-rds-disable-metric-collection branch April 6, 2020 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants