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

Refactor rule model #4639

Merged
merged 2 commits into from
Jan 30, 2024
Merged

Refactor rule model #4639

merged 2 commits into from
Jan 30, 2024

Conversation

poulch
Copy link
Member

@poulch poulch commented Jan 29, 2024

What type of PR is this?

  • 💅 Refactor
  • 🌟 Feature
  • 🔥 Bug Fix
  • 🔩 Maintenance
  • 🛠 Workflow CI/CD changes

Related Issues or Documents

Usage Instructions, Screenshots, Recordings

Have you written tests?

  • Yes!
  • No... here is why: Writing tests are mandatory, please replace this text with why test are not included in this PR

[Optional] Description

@poulch poulch requested review from a team, andrzejewsky and Droniu January 29, 2024 14:42
Copy link

changeset-bot bot commented Jan 29, 2024

🦋 Changeset detected

Latest commit: bd98e77

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
saleor-dashboard Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@Droniu Droniu left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -1,24 +1,29 @@
import { Rule } from "@dashboard/discounts/models";
import { sortRules } from "@dashboard/discounts/utils";
import { useState } from "react";
import {} from "@dashboard/graphql";
Copy link
Member

Choose a reason for hiding this comment

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

issue: I'm surprised linters even allow that

@poulch poulch merged commit a210c06 into main Jan 30, 2024
36 checks passed
@poulch poulch deleted the 4636-refactor-rule-model branch January 30, 2024 09:33
@poulch poulch restored the 4636-refactor-rule-model branch July 1, 2024 11:26
@poulch poulch deleted the 4636-refactor-rule-model branch July 1, 2024 11:32
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.

Refactor Rule model
2 participants