Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Improve performance to "rit create formula" command #805

Merged
merged 6 commits into from
Dec 21, 2020
Merged

Improve performance to "rit create formula" command #805

merged 6 commits into from
Dec 21, 2020

Conversation

kaduartur
Copy link
Contributor

Description

Some versions ago we removed the building code of the rit create formula command because it is already present at the time of executing a formula, then we realized that we could remove the spinner of the rit create formula command. The command now executes instantly when called.

When creating the formula we now generate your hash to get to know if we had any changes to the formula before the first build was done.

How to verify it

Follow the steps below:

  • create a new formula
  • edit this formula

The formula changes must be present in the first build.

Changelog

Remove spinner from rit create formula

@kaduartur kaduartur added 🔨 improvement Improvement in features ✔️ ready-for-review ready for review 🐎 Performance Indicate that an issue or PR is from the performance context labels Dec 17, 2020
@kaduartur kaduartur self-assigned this Dec 17, 2020
@kaduartur kaduartur linked an issue Dec 17, 2020 that may be closed by this pull request
Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com>
Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com>
brunasilvazup
brunasilvazup previously approved these changes Dec 18, 2020
pkg/cmd/create_formula.go Show resolved Hide resolved
pkg/cmd/create_formula_test.go Show resolved Hide resolved
pkg/cmd/create_formula_test.go Outdated Show resolved Hide resolved
pkg/cmd/create_formula_test.go Show resolved Hide resolved
pkg/cmd/create_formula_test.go Show resolved Hide resolved
Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com>
Signed-off-by: Kadu Artur Prussek <kadu.artur@gmail.com>
@codecov-io
Copy link

codecov-io commented Dec 21, 2020

Codecov Report

Merging #805 (61298f0) into master (13b1f44) will increase coverage by 1.27%.
The diff coverage is 92.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #805      +/-   ##
==========================================
+ Coverage   82.52%   83.80%   +1.27%     
==========================================
  Files         110      110              
  Lines        3806     3797       -9     
==========================================
+ Hits         3141     3182      +41     
+ Misses        481      440      -41     
+ Partials      184      175       -9     
Impacted Files Coverage Δ
pkg/cmd/create_formula.go 86.01% <92.00%> (+30.75%) ⬆️
pkg/slice/sliceutil/slice_util.go 100.00% <0.00%> (+16.66%) ⬆️

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 13b1f44...61298f0. Read the comment docs.

Copy link
Contributor

@henriquemoraeszup henriquemoraeszup left a comment

Choose a reason for hiding this comment

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

I am adding this PR to the testify list, nice work

@kaduartur
Copy link
Contributor Author

/merge qa

@ritchie-bot
Copy link
Contributor

ritchie-bot bot commented Dec 21, 2020

🔥 Merge Conflict

@kaduartur
Copy link
Contributor Author

/merge qa

@ritchie-bot
Copy link
Contributor

ritchie-bot bot commented Dec 21, 2020

👌 Merged branch performance/create_formula_loading into qa

@kaduartur kaduartur merged commit 84b0008 into ZupIT:master Dec 21, 2020
@kaduartur kaduartur deleted the performance/create_formula_loading branch December 21, 2020 20:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 improvement Improvement in features ✔️ ready-for-review ready for review 🐎 Performance Indicate that an issue or PR is from the performance context
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The formula is not automatically build at its creation
4 participants