mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
refreshed all footprints in fixtures, all tests passing
This commit is contained in:
parent
28e41de9ad
commit
209bde9f28
@ -38,7 +38,7 @@ class FootprintService
|
||||
# Return an ordered array of the columns used in the footprint computation
|
||||
# @param klass {Class} a class inheriting from Footprintable
|
||||
def footprint_columns(klass)
|
||||
klass.columns.map(&:name).delete_if { |c| %w[footprint updated_at].concat(klass.columns_out_of_footprint).include? c }.sort
|
||||
%w[id].concat(klass.columns.map(&:name).delete_if { |c| %w[id footprint updated_at].concat(klass.columns_out_of_footprint).include? c }.sort)
|
||||
end
|
||||
|
||||
# Logs a debugging message to help finding why a footprint is invalid
|
||||
|
3202
test/fixtures/footprint_debugs.yml
vendored
3202
test/fixtures/footprint_debugs.yml
vendored
File diff suppressed because one or more lines are too long
862
test/fixtures/history_values.yml
vendored
862
test/fixtures/history_values.yml
vendored
File diff suppressed because one or more lines are too long
12
test/fixtures/invoice_items.yml
vendored
12
test/fixtures/invoice_items.yml
vendored
@ -7,7 +7,7 @@ invoice_item_1:
|
||||
updated_at: '2021-05-27 09:26:26.450083'
|
||||
description: Sleede - standard, association - month
|
||||
invoice_item_id:
|
||||
footprint: 45c215f761aa7a3dae48f52ab5c5e34e1d33f309779ed91a0008040b9bce7eec
|
||||
footprint: d2b756f158d6332c32b7b262118f5bdcfd68221ab089c355e6776c1298d937b8
|
||||
object_type: Subscription
|
||||
object_id: 1
|
||||
main: true
|
||||
@ -20,7 +20,7 @@ invoice_item_2:
|
||||
description: Mensuel tarif réduit - étudiant, - de 25 ans, enseignant, demandeur
|
||||
d'emploi - month
|
||||
invoice_item_id:
|
||||
footprint: 3e3666de0195426b73164a1d2593ae6986fb6add76c04d2ede798620f9c7b445
|
||||
footprint: f02559738cb3674e74021ac1894e512e1864eb9fc177e885283a214fa5e0dd74
|
||||
object_type: Subscription
|
||||
object_id: 2
|
||||
main: true
|
||||
@ -32,7 +32,7 @@ invoice_item_3:
|
||||
updated_at: '2021-05-27 09:26:26.465302'
|
||||
description: Mensuel - standard, association - month
|
||||
invoice_item_id:
|
||||
footprint: 036d18dd5a1d6340155d52a85d46074a7119e5e379430e4f1a26c9e7f0f05a97
|
||||
footprint: e6141fbc1db017356f855ebc784cb2e084fbf82ed56a0dc295c8a39dcc2a0f92
|
||||
object_type: Subscription
|
||||
object_id: 3
|
||||
main: true
|
||||
@ -44,7 +44,7 @@ invoice_item_4:
|
||||
updated_at: '2021-05-27 09:26:26.468890'
|
||||
description: Formation Laser / Vinyle April 11, 2012 08:00 - 12:00 PM
|
||||
invoice_item_id:
|
||||
footprint: 7d9cad2ae8bcd239ed85def9bb6df3bef6600e6821d2fbf5c897ce4a562c26a5
|
||||
footprint: b66ade050a2ef9ebb18067ac1af2828fec2077037100d7068481e00097af4bc0
|
||||
object_type: Reservation
|
||||
object_id: 1
|
||||
main: true
|
||||
@ -56,7 +56,7 @@ invoice_item_5:
|
||||
updated_at: '2021-05-27 09:26:26.472232'
|
||||
description: Imprimante 3D June 15, 2015 12:00 - 01:00 PM
|
||||
invoice_item_id:
|
||||
footprint: e3c924b00bb7c24f7082fb15683660e371b940abe2c8f983b5a60f958652241b
|
||||
footprint: a0f096de802df8d5708d4dcc23d7384ab95f246fb80e59564b2c3363db103b02
|
||||
object_type: Reservation
|
||||
object_id: 2
|
||||
main: true
|
||||
@ -68,7 +68,7 @@ invoice_item_6:
|
||||
updated_at: '2021-05-27 09:26:26.475460'
|
||||
description: Mensuel - standard, association - month
|
||||
invoice_item_id:
|
||||
footprint: ab4277c9ccb4cbe7281646f4043adfe40064f58f5e9a34cf0d822143c02e0d56
|
||||
footprint: 88e73e7d2f29fe8f029a646a54e5e8884ddf9cd9b207544e9f3d18c70d181749
|
||||
object_type: Subscription
|
||||
object_id: 4
|
||||
main: true
|
||||
|
12
test/fixtures/invoices.yml
vendored
12
test/fixtures/invoices.yml
vendored
@ -14,7 +14,7 @@ invoice_1:
|
||||
wallet_amount:
|
||||
wallet_transaction_id:
|
||||
coupon_id:
|
||||
footprint: cce0e9ca7696065ac4a6ed98b4a98e057bfc4ec936db171f3e64cbe2d2db8dce
|
||||
footprint: e4edca90b74e7d1a6f59cd62a9434027ab8cec8f3f71737938123686afaa53f6
|
||||
environment: test
|
||||
invoicing_profile_id: 3
|
||||
operator_profile_id: 3
|
||||
@ -34,7 +34,7 @@ invoice_2:
|
||||
wallet_amount:
|
||||
wallet_transaction_id:
|
||||
coupon_id:
|
||||
footprint: a52f746c7010b30be4affbfb155efe2c601ee9f6264c2f47fbf6397db9bf77c3
|
||||
footprint: 52f5c2cb9e58d0ad421c93437f57fe2dd364ca412c85775cd59e7510031f1091
|
||||
environment: test
|
||||
invoicing_profile_id: 4
|
||||
operator_profile_id: 1
|
||||
@ -54,7 +54,7 @@ invoice_3:
|
||||
wallet_amount:
|
||||
wallet_transaction_id:
|
||||
coupon_id:
|
||||
footprint: 55a339b3e10e0d5f1a1047898fa11b64a05088c9c1f0a2fd3108af4a03ac9330
|
||||
footprint: 2396b77776092cf80e3b2c1effef36e655af63a52a781eb73f27d9f44e546bae
|
||||
environment: test
|
||||
invoicing_profile_id: 7
|
||||
operator_profile_id: 1
|
||||
@ -74,7 +74,7 @@ invoice_4:
|
||||
wallet_amount:
|
||||
wallet_transaction_id:
|
||||
coupon_id:
|
||||
footprint: db3e6d35ff48c8b86a81fe40fc62547839d91e6d7b80c56a69e3c4bcc9a8aabf
|
||||
footprint: c0809383b304668ac5226fb502f92eb26c51701380ea9ba9526b80b0295b603d
|
||||
environment: test
|
||||
invoicing_profile_id: 7
|
||||
operator_profile_id: 1
|
||||
@ -94,7 +94,7 @@ invoice_5:
|
||||
wallet_amount:
|
||||
wallet_transaction_id:
|
||||
coupon_id:
|
||||
footprint: e9afb3ba8863ab640d704996e2c6667c43815a38400fd31be58b764e106f9949
|
||||
footprint: f5d538feef1e83fd8f2b1431e7797e1d267f034e3612bdd9725a58e7ba947b27
|
||||
environment: test
|
||||
invoicing_profile_id: 3
|
||||
operator_profile_id: 1
|
||||
@ -114,7 +114,7 @@ invoice_6:
|
||||
wallet_amount:
|
||||
wallet_transaction_id:
|
||||
coupon_id:
|
||||
footprint: 80a06501ce96d2743aa917d17793fd31267122c11e01639b0e0fc7799e6526c0
|
||||
footprint: eb22a99b5fec426dda0214bbaca3ea938fabe42c73bbf1f86712f67a5f61d236
|
||||
environment: test
|
||||
invoicing_profile_id: 8
|
||||
operator_profile_id: 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user