Skip to content

Commit

Permalink
Add comment to Rakefile for a new approach with binary search
Browse files Browse the repository at this point in the history
  • Loading branch information
kpopko committed Dec 10, 2023
1 parent ba6b6a2 commit e3b606a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ task :excluded_fields, [:filename] do |_t, args|
setup_iron_bank

destination = args[:filename] || IronBank.configuration.excluded_fields_file
# When Zuora return InternalServerError we can not extract fields from the a message.
# For this case we are doing binary search through the query fields and it could be
# expensive due to repeatedly querying.
fields = IronBank::Schema.excluded_fields.sort.to_h

File.write(destination, Psych.dump(fields))
Expand Down

0 comments on commit e3b606a

Please sign in to comment.