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

web/storagenode: chart y and x axis reworked #3179

Merged
merged 10 commits into from Oct 11, 2019
Merged

web/storagenode: chart y and x axis reworked #3179

merged 10 commits into from Oct 11, 2019

Conversation

VitaliiShpital
Copy link
Member

What: number of x axis values reduced;
month added to x axis;
added y axis;
added label above y axis;
y axis dashed grid lines added.

Why: SNOboard enhancements

Please describe the tests:

  • Test 1:
  • Test 2:

Please describe the performance impact:

Code Review Checklist (to be filled out by reviewer)

  • Does the PR describe what changes are being made?
  • Does the PR describe why the changes are being made?
  • Does the code follow our style guide?
  • Does the code follow our testing guide?
  • Is the PR appropriately sized? (If it could be broken into smaller PRs it should be)
  • Does the new code have enough tests? (every PR should have tests or justification otherwise. Bug-fix PRs especially)
  • Does the new code have enough documentation that answers "how do I use it?" and "what does it do?"? (both source documentation and higher level, diagrams?)
  • Does any documentation need updating?
  • Do the database access patterns make sense?

@VitaliiShpital VitaliiShpital added Request Code Review Code review requested Reviewer Can Merge If all checks have passed, non-owner can merge PR labels Oct 4, 2019
@cla-bot cla-bot bot added the cla-signed label Oct 4, 2019
@ghost ghost removed their request for review October 4, 2019 13:13
Copy link
Contributor

@Barterio Barterio left a comment

Choose a reason for hiding this comment

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

Consider moving numbers to const. Rest LGTM

const middleDateValue = valuesLength / 2;
const isDateValueInMiddleInEvenAmount = index === (middleDateValue - 1);
const isDateValueInMiddleInNotEvenAmount = index === (Math.floor(middleDateValue));
const isAfterEighthDayOfTheMonth = valuesLength > 8 && valuesLength <= 31;
Copy link
Contributor

Choose a reason for hiding this comment

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

This numbers should be moved to const with meaning description.
Avoid using magic numbers

Barterio
Barterio previously approved these changes Oct 4, 2019
crawter
crawter previously approved these changes Oct 10, 2019
crawter
crawter previously approved these changes Oct 10, 2019
rikysya
rikysya previously approved these changes Oct 11, 2019
@@ -7,6 +7,34 @@ import { Component, Prop, Vue, Watch } from 'vue-property-decorator';

import { ChartData } from '@/app/types/chartData';

class DayShowingConditions {
public day: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

private

@@ -7,6 +7,34 @@ import { Component, Prop, Vue, Watch } from 'vue-property-decorator';

import { ChartData } from '@/app/types/chartData';

class DayShowingConditions {
public day: string;
public daysArray: string[];
Copy link
Contributor

Choose a reason for hiding this comment

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

private

crawter
crawter previously approved these changes Oct 11, 2019
class DayShowingConditions {
public day: string;
public daysArray: string[];
public middleDateValue: number;
Copy link
Contributor

Choose a reason for hiding this comment

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

readonly

public day: string;
public daysArray: string[];
public middleDateValue: number;
public isDateValueFirstOrLast: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

readonly

public daysArray: string[];
public middleDateValue: number;
public isDateValueFirstOrLast: boolean;
public isAfterEighthDayOfTheMonth: boolean;
Copy link
Contributor

Choose a reason for hiding this comment

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

readonly

Copy link
Contributor

@NikolaiYurchenko NikolaiYurchenko left a comment

Choose a reason for hiding this comment

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

LGTM

@VitaliiShpital VitaliiShpital merged commit 0560b2b into storj:master Oct 11, 2019
@VitaliiShpital VitaliiShpital deleted the web/storagenode_charts_updating branch October 11, 2019 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed Request Code Review Code review requested Reviewer Can Merge If all checks have passed, non-owner can merge PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants