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

Feature :: Sort step form #228

Merged
merged 13 commits into from
Jul 12, 2019
Merged

Feature :: Sort step form #228

merged 13 commits into from
Jul 12, 2019

Conversation

zegonz
Copy link
Contributor

@zegonz zegonz commented Jul 2, 2019

This PR introduce :

  • simplify the mongo transformation, now the order property is includes in columns
  • new object in steps.ts SortColumnType
  • change steps documentation about that
  • a new widget : WidgetSortColumn for widgetList

Copy link
Contributor

@adimascio adimascio left a comment

Choose a reason for hiding this comment

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

Nice job! I've requested a few changes that I'd be glad to discuss about with you.

src/components/stepforms/SortStepForm.vue Outdated Show resolved Hide resolved
src/components/stepforms/WidgetList.vue Outdated Show resolved Hide resolved
src/components/stepforms/WidgetSortColumn.vue Outdated Show resolved Hide resolved
src/components/stepforms/WidgetSortColumn.vue Outdated Show resolved Hide resolved
tests/unit/widget-sort-column.spec.ts Outdated Show resolved Hide resolved
tests/unit/widget-sort-column.spec.ts Outdated Show resolved Hide resolved
tests/unit/widget-sort-column.spec.ts Outdated Show resolved Hide resolved
tests/unit/karma-test-suite.ts Outdated Show resolved Hide resolved
tests/unit/karma-test-suite.ts Outdated Show resolved Hide resolved
@zegonz zegonz force-pushed the f/sort-step-form branch from ba9d878 to 6639608 Compare July 3, 2019 14:31
@codecov-io
Copy link

codecov-io commented Jul 3, 2019

Codecov Report

Merging #228 into master will increase coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #228      +/-   ##
==========================================
+ Coverage   99.27%   99.28%   +0.01%     
==========================================
  Files          50       52       +2     
  Lines         690      703      +13     
  Branches      117      118       +1     
==========================================
+ Hits          685      698      +13     
  Misses          5        5
Impacted Files Coverage Δ
src/components/ActionMenu.vue 100% <ø> (ø) ⬆️
src/components/stepforms/WidgetList.vue 100% <ø> (ø) ⬆️
src/components/stepforms/WidgetAggregation.vue 100% <ø> (ø) ⬆️
src/components/stepforms/schemas/index.ts 100% <ø> (ø) ⬆️
src/components/stepforms/WidgetSortColumn.vue 100% <100%> (ø)
src/lib/translators/mongo.ts 99.3% <100%> (-0.01%) ⬇️
src/components/stepforms/SortStepForm.vue 100% <100%> (ø)
... and 3 more

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 2c91663...41875dd. Read the comment docs.

@zegonz zegonz force-pushed the f/sort-step-form branch from 6639608 to 66a4a3f Compare July 3, 2019 17:08
@zegonz zegonz added the help wanted Extra attention is needed label Jul 3, 2019
@zegonz zegonz requested a review from adimascio July 4, 2019 13:19
@zegonz zegonz removed the help wanted Extra attention is needed label Jul 4, 2019
Copy link
Contributor

@adimascio adimascio left a comment

Choose a reason for hiding this comment

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

Nice job, thanks! I think there's only one change required and this should be good

initialStepValue!: SortStep;

readonly title: string = 'Sort';
widgetSortColumn = WidgetSortColumn;
Copy link
Contributor

Choose a reason for hiding this comment

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

Side note for later: I wonder if we could not register the widget globally and then use widget="widget-sort-column" in the template.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Issue for this => #240

src/components/stepforms/WidgetSortColumn.vue Outdated Show resolved Hide resolved
@zegonz zegonz requested a review from adimascio July 10, 2019 14:46
Copy link
Contributor

@adimascio adimascio left a comment

Choose a reason for hiding this comment

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

LGTM!

@adimascio adimascio merged commit 2e840a8 into master Jul 12, 2019
@adimascio adimascio deleted the f/sort-step-form branch July 12, 2019 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants