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

feat(api,ui): add labels to categorize workflows #3278

Merged
merged 3 commits into from
Aug 31, 2018
Merged

feat(api,ui): add labels to categorize workflows #3278

merged 3 commits into from
Aug 31, 2018

Conversation

bnjjj
Copy link
Contributor

@bnjjj bnjjj commented Aug 31, 2018

  1. Description
  2. Related issues
    close Categorize workflows #3193
  3. About tests
    Unit tests
  4. Mentions
    cc @blaryjp

@ovh/cds

if errTx != nil {
return sdk.WrapError(errTx, "putProjectLabelsHandler> Cannot create transaction")
}
defer tx.Rollback()

Choose a reason for hiding this comment

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

Error return value of tx.Rollback is not checked

if errTx != nil {
return sdk.WrapError(errTx, "postWorkflowLabelHandler> Cannot create new transaction")
}
defer tx.Rollback()

Choose a reason for hiding this comment

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

Error return value of tx.Rollback is not checked


"github.com/go-gorp/gorp"
"github.com/lib/pq"
"github.com/ovh/cds/engine/api/database"
Copy link
Collaborator

Choose a reason for hiding this comment

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

need empty line

@@ -0,0 +1,21 @@
-- +migrate Up
CREATE TABLE IF NOT EXISTS workflow_label (
Copy link
Collaborator

Choose a reason for hiding this comment

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

project_label lay be a better choice

sdk/workflow.go Outdated
}
label.Color = "#" + hex.EncodeToString(bytes)
} else {
if !regexp.MustCompile(`^#\w{3,8}$`).Match([]byte(label.Color)) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

regexp.MustCompile(^#\w{3,8}$) . must be done once

@@ -0,0 +1,3 @@
.labels-edit {
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No I prefer keep this format even if it's empty

close #3193
Signed-off-by: Benjamin Coenen <benjamin.coenen@corp.ovh.com>
@sguiheux sguiheux merged commit ff2de67 into master Aug 31, 2018
@bnjjj bnjjj deleted the feat_3193 branch October 10, 2018 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Categorize workflows
4 participants