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

Invoice item repository #991

Open
wants to merge 159 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
159 commits
Select commit Hold shift + click to select a range
14548da
Add Merchant, Sales_Engine classes, tests
nlj77 May 31, 2022
97f782a
Add SimpleCov to Gemfile
jusrez May 31, 2022
8ab1ee2
Change test folder to spec folder
jusrez May 31, 2022
3345ca4
Add spec_helper file for SimpleCov
jusrez May 31, 2022
f468e78
Merge pull request #1 from jusrez/setup-new
KevinT001 May 31, 2022
a0e71bb
Merge pull request #2 from jusrez/add_merchant_class
tig-o May 31, 2022
ec10368
Current work Iter 0
KevinT001 Jun 1, 2022
eedf03c
Merge pull request #3 from jusrez/Kevin/iteration_0
nlj77 Jun 1, 2022
acea9ff
Create item class and item test
KevinT001 Jun 1, 2022
2e4cd0c
Complete item_spec
KevinT001 Jun 1, 2022
d405083
Item class needs correcting
KevinT001 Jun 1, 2022
5311f42
Create Item class and tests
jusrez Jun 1, 2022
2d001dd
Add unit price to dollars method and tests
jusrez Jun 1, 2022
3862eea
Create item_repository class and spec file
jusrez Jun 1, 2022
a79bc4c
Replace last test with two separate tests
jusrez Jun 1, 2022
107432e
Remove test/merchant_spec and test/sales_engine_spec
jusrez Jun 1, 2022
2ec00a1
Make changes to class names in spec and class files
jusrez Jun 1, 2022
84827b6
Add tests to spec file
jusrez Jun 1, 2022
721a6fc
Create merchant repository class and spec file
jusrez Jun 1, 2022
994526c
Change merchant repository class and spec file to include previous code
jusrez Jun 1, 2022
e735b11
Merge branch 'main' into feat/iteration0
nlj77 Jun 1, 2022
0c95099
Merge pull request #5 from jusrez/feat/iteration0
tig-o Jun 1, 2022
09d6d0b
Test: Merchant repo can find by merchant ID
tig-o Jun 1, 2022
b4c797c
Refactor: Test where merchant can find merchant by ID
tig-o Jun 1, 2022
00c6b37
Feat: Pass test merchant repo finds by ID
tig-o Jun 1, 2022
b462b32
Test: Merchant repo can find merchant by name
tig-o Jun 1, 2022
21ed75c
Refactor: Test merchant repo can find merchant by name
tig-o Jun 1, 2022
c95079e
Feat: Pass test merchant repo finds by name
tig-o Jun 1, 2022
8dc045d
Test: Merchant repo can find all merchants by name fragment
tig-o Jun 2, 2022
207478c
Feat: Pass test merchant repo finds all merchants by name fragment
tig-o Jun 2, 2022
13ffd90
Refactor: Sales engine attr reader
tig-o Jun 2, 2022
d60f6a0
Merge pull request #6 from jusrez/feature/merchant_repo
nlj77 Jun 2, 2022
18fca13
Create Item repository
KevinT001 Jun 2, 2022
ffc1970
Fix merge conflicts
KevinT001 Jun 2, 2022
88d579f
Test: Add merchant_repository.rb method find_all_by_name, and test.
nlj77 Jun 2, 2022
ac783d6
Pass Test: create method Feature: Add create method and test. Add upd…
nlj77 Jun 2, 2022
baf0741
Merge pull request #7 from jusrez/feature/merchant_repository_methods…
tig-o Jun 2, 2022
9af2ad4
Feat: Pass test merchant repo updates a merchant object
tig-o Jun 2, 2022
bcf25df
Test: Merchant repo can delete a merchant object
tig-o Jun 2, 2022
439aecb
Feat: Pass test merchant repo deletes a merchant object
tig-o Jun 3, 2022
ed58ea5
Merge pull request #8 from jusrez/feature/merchant_repository_methods…
nlj77 Jun 3, 2022
c7d9bf8
Change instance variables names in class and spec
jusrez Jun 3, 2022
be3653c
Add initialize method
jusrez Jun 3, 2022
5068c56
Merge pull request #9 from jusrez/feat/item_repo_initialize
nlj77 Jun 3, 2022
6d4882c
Test: add test for it exists in item repository spec
nlj77 Jun 3, 2022
87d4c6c
Test: item repository can return an array of all known item instances
nlj77 Jun 3, 2022
f9ef70a
Test: item repository can find item by ID
nlj77 Jun 3, 2022
0d03fef
Test: item repository can find item by name
nlj77 Jun 3, 2022
1ed68e9
Feature:add method item repository can find item by name
nlj77 Jun 3, 2022
6971fca
Test: item repo spec can test for a method to return an item by a des…
nlj77 Jun 3, 2022
9e0e9d7
Test: added extra testing options for returning a description in item…
nlj77 Jun 3, 2022
f0dede0
Feature/Test: Add method find all by price, and test
nlj77 Jun 3, 2022
a4a79b7
Test: add test for finding all items in price range
nlj77 Jun 3, 2022
b8e1254
Function: Add method for find all by price in range
nlj77 Jun 3, 2022
52d8e34
Test: add test for finding all items by a merchant ID
nlj77 Jun 3, 2022
7d03c1e
Feature: add method for searching for items by merchant id
nlj77 Jun 3, 2022
3b9c017
Feature: add create an item with attributes and worked on test
nlj77 Jun 3, 2022
a593079
Feature/Test: Add method to update an item and test
nlj77 Jun 3, 2022
2d8c2bf
Feature/Test: add delete and delete test
nlj77 Jun 3, 2022
2d22446
Merge pull request #10 from jusrez/feature/item_repository_methods
KevinT001 Jun 3, 2022
c453b3b
Fix spec to ensure acorrect amount of arguments were passed
jusrez Jun 3, 2022
a150164
Feature: update create method and test to account for all elements of…
nlj77 Jun 3, 2022
0268a2d
Feature/Test: Addd updated at and test for updated at in item reposit…
nlj77 Jun 3, 2022
3641d0e
Save to pull recent group work
KevinT001 Jun 3, 2022
86da400
Fix merge conflict
KevinT001 Jun 3, 2022
e3a0c63
Test: updated return an item by parts of a description to include a e…
nlj77 Jun 3, 2022
1373888
Feature/test: changed find_all_by_price to item.unit_price, added tes…
nlj77 Jun 3, 2022
25d35d8
Change instance variables in spec so methods work
jusrez Jun 3, 2022
633d98b
Merge pull request #11 from jusrez/feat/spec-fixes
nlj77 Jun 3, 2022
ad9178b
Test: changed find all by merchant id in item repository spec to chec…
nlj77 Jun 3, 2022
5ebbaff
Merge pull request #12 from jusrez/feature/item_repository_methods
jusrez Jun 3, 2022
368828e
Fix merge conflict
KevinT001 Jun 3, 2022
abc8c3f
Merge branch 'main' of github.com:jusrez/black_thursday into Kevin/it…
KevinT001 Jun 3, 2022
723948f
Add analyst method to SalesEngine class
jusrez Jun 3, 2022
6b51a59
Create SalesAnalyst class
jusrez Jun 3, 2022
8d2e422
Create SalesAnalyst spec
jusrez Jun 3, 2022
e08e295
Edit analyst method
jusrez Jun 4, 2022
04e8a2c
work on sales analyst
KevinT001 Jun 4, 2022
4c1e80a
Add average items per merchant and standard deviation
jusrez Jun 4, 2022
9cd4c8c
Merge pull request #13 from jusrez/feat/sales_analyst
KevinT001 Jun 4, 2022
0f87e9e
Test: Sales analyst can display the merchants who have the most items…
tig-o Jun 4, 2022
bbe2e85
Feat: Pass test sales analyst displays merchants who have the most it…
tig-o Jun 4, 2022
e5b6c28
Test: Sales analyst can return avg price of a merchants items
tig-o Jun 4, 2022
15eecc0
Feat: Pass test sales analyst returns avg price of a merchants items
tig-o Jun 4, 2022
0ea782f
Test/Feat: Sales analyst can return avg of the avg prices per merchant
tig-o Jun 4, 2022
523442b
In Progress: Sales analyst can return golden items
tig-o Jun 4, 2022
e4c8c04
Merge pull request #14 from jusrez/feat/sales_analyst
nlj77 Jun 4, 2022
dbdfa47
Fix merge conflict
KevinT001 Jun 4, 2022
16279bb
Merge branch 'main' of github.com:jusrez/black_thursday into Kevin/it…
KevinT001 Jun 4, 2022
ea8d635
Test: added a test for standard deviation method, and test for return…
nlj77 Jun 4, 2022
e5d491a
Feature: added standard deviation method, and method to return golden…
nlj77 Jun 4, 2022
8d1f53f
Fix: changed require in lib files to require relative
nlj77 Jun 4, 2022
eb890bc
Merge pull request #15 from jusrez/feat/sales_analyst
tig-o Jun 4, 2022
88f8d03
Test: add test for it exists for invoice
nlj77 Jun 4, 2022
ba1beda
Test: add test for returning the ID
nlj77 Jun 4, 2022
3fe6ffd
Test: finished tests and methods for invoice.rb
nlj77 Jun 4, 2022
ec33de3
Test: refactored sales engine class to account for tests for invoice …
nlj77 Jun 4, 2022
b32b258
Test: create test for invoice repository, it exists
nlj77 Jun 4, 2022
bdce1c6
Test: add test for returning an array of all invoices and finding an …
nlj77 Jun 4, 2022
8643013
Test: add test to item repository spec for finding all invoices by sp…
nlj77 Jun 4, 2022
c1c9d15
Feature: Add find all by customer id
nlj77 Jun 5, 2022
5ba79c6
Feature/Test: add method to find all by merchant id and test
nlj77 Jun 5, 2022
a5b0a88
Merge pull request #16 from jusrez/feat/invoice_repository
tig-o Jun 5, 2022
5a31b21
Refactor: Added invoices to sales_engine hash within sales analyst spec
tig-o Jun 5, 2022
842473b
Test: Invoice repo can find all invoices by a matching status
tig-o Jun 5, 2022
c94f666
Feat: Invoice repo finds all invoices by a matching status
tig-o Jun 5, 2022
bc6914a
Test: Invoice repo can create an invoice instance with provided attri…
tig-o Jun 5, 2022
436a117
Feat: Pass test invoice repo creates an invoice instance with provide…
tig-o Jun 5, 2022
5bb87a7
Create invoice item spec
KevinT001 Jun 5, 2022
6b1b675
Refactor: Attr accessor update and reformatting
tig-o Jun 5, 2022
e592ba0
Test: Invoice repo can update an invoices attributes
tig-o Jun 5, 2022
8fdba30
Feat: Pass test invoice repo updates an invoice attributes
tig-o Jun 5, 2022
b7ac936
Test: Pass test invoice repo deletes an invoice
tig-o Jun 5, 2022
03f7c38
Feat: Invoice repo deletes an invoice
tig-o Jun 5, 2022
d603181
Test/Feat: Sales analyst can average invoices per merchant
tig-o Jun 5, 2022
daf6d48
Test/Feat: Sales analyst an return standard deviation of average invo…
tig-o Jun 5, 2022
d6d3c87
Merge pull request #17 from jusrez/feat/invoice_repository
nlj77 Jun 5, 2022
81818f7
Add test for top_merchants_by_invoice count and helper methods
jusrez Jun 5, 2022
a985b8d
Add test for merchants_by_z_score helper method
jusrez Jun 6, 2022
4d1fb4e
Add test for bottom_merchants_by_invoice_count method
jusrez Jun 6, 2022
120f202
Add top_merchants_by_invoice count and bottom_merchants_by_invoice co…
jusrez Jun 6, 2022
e9fd356
Change bottom_merchants_by_invoice_count method
jusrez Jun 6, 2022
cfda7ae
Add test for top_days_by_invoice_count method
jusrez Jun 6, 2022
a43cf2c
Add test for date_to_day helper method
jusrez Jun 6, 2022
8a7d983
Add test for invoices_by_day helper method
jusrez Jun 6, 2022
b56f166
Add test for average_invoices_per_day helper method
jusrez Jun 6, 2022
6037be8
Add average_invoices_per_day_standard_deviation helper method
jusrez Jun 6, 2022
abbb3c7
Add helper methods and edits to top_days_by_invoice_count
jusrez Jun 6, 2022
5257d1c
Add test for invoice_status method
jusrez Jun 6, 2022
e97359d
Merge pull request #18 from jusrez/feat/top-bottom-methods
tig-o Jun 6, 2022
960d1a7
Save work before pull from main
KevinT001 Jun 6, 2022
5dd4d67
fix local merge conflict
KevinT001 Jun 6, 2022
91d67f9
Add additional expectation to merchants_by_zscore method
jusrez Jun 6, 2022
f9d9c8b
Add invoice_status method and helper methods
jusrez Jun 6, 2022
9698b07
Merge pull request #19 from jusrez/feat/invoice-status
KevinT001 Jun 6, 2022
6870d90
Test: add test for if invoice item if it exists
nlj77 Jun 7, 2022
adaf0a6
Test: add test for returning the details of an invoice ID
nlj77 Jun 7, 2022
e1e3aa9
Create customer class and spec file
jusrez Jun 7, 2022
55c98aa
Add tests to confirm accessibility to instance variables
jusrez Jun 7, 2022
7ab85e7
Test: add ability to return unit price as float
nlj77 Jun 7, 2022
d989459
Merge pull request #20 from jusrez/feat/invoice_item
KevinT001 Jun 7, 2022
af42e2a
Merge pull request #21 from jusrez/feat/customer-customer_repository
nlj77 Jun 7, 2022
266bc30
Save progress before branch switch
KevinT001 Jun 7, 2022
13ecb50
Fix merge conflict local
KevinT001 Jun 7, 2022
92d5784
Test: invoice_item_repo exists, returns as array, return amount of in…
KevinT001 Jun 7, 2022
ac59d08
Feat: invoice_item_repository returns data
KevinT001 Jun 7, 2022
f835333
Test: invoice_item_repository find by id
KevinT001 Jun 7, 2022
2eaf3ad
Feat: invoice_item_repository, find_by_id
KevinT001 Jun 7, 2022
1e164ec
Test: find_all_by_item_id
KevinT001 Jun 7, 2022
7b0aec0
Feat: invoice_item_repository / find_all_by_item id
KevinT001 Jun 7, 2022
4cdc904
Feat: find_all_by_invoice_id
KevinT001 Jun 7, 2022
f3d7771
Test: create new_item with attributes
KevinT001 Jun 7, 2022
3156223
Feat: create new item and attributes
KevinT001 Jun 7, 2022
77d122e
Test: update invoice item attributes
KevinT001 Jun 7, 2022
04d6f40
Feat: update method for invoice item repository
KevinT001 Jun 7, 2022
703a37a
Test: delete invoice item instance
KevinT001 Jun 7, 2022
1ce2185
Feat: delete invoice item repo
KevinT001 Jun 7, 2022
735d059
Delete item_spec.rb
tig-o Jun 7, 2022
6a7ccca
Delete sales_analyst_spec.rb
tig-o Jun 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ gem 'cane'
gem 'reek'
gem 'rake'
gem 'rspec'
gem 'simplecov', require: false, group: :test
50 changes: 50 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
cane (3.0.0)
parallel
diff-lcs (1.5.0)
docile (1.4.0)
kwalify (0.7.2)
parallel (1.22.1)
parser (3.1.2.0)
ast (~> 2.4.1)
rainbow (3.1.1)
rake (13.0.6)
reek (6.1.1)
kwalify (~> 0.7.0)
parser (~> 3.1.0)
rainbow (>= 2.0, < 4.0)
rspec (3.11.0)
rspec-core (~> 3.11.0)
rspec-expectations (~> 3.11.0)
rspec-mocks (~> 3.11.0)
rspec-core (3.11.0)
rspec-support (~> 3.11.0)
rspec-expectations (3.11.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-mocks (3.11.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.11.0)
rspec-support (3.11.0)
simplecov (0.21.2)
docile (~> 1.1)
simplecov-html (~> 0.11)
simplecov_json_formatter (~> 0.1)
simplecov-html (0.12.3)
simplecov_json_formatter (0.1.4)

PLATFORMS
x86_64-darwin-21

DEPENDENCIES
cane
rake
reek
rspec
simplecov

BUNDLED WITH
2.3.13
Loading