- WA-4929 / NF-18593 was merged and Michael verified it.
- Made good progress on NF-14938:
- Changed the designation/requirements job introduced in WA-4929 to work by applicant to not double process requirements owned by multiple programs and to take advantage of more eager loading and caching.
- Found out that the join table between programs and requirements allows duplicates, and actually there are 428k join records but only 64k of them are unique. Without doing anything, we would be processing records based on the extra joins so I made sure we were only processing unique jobs.
- Made a "performance" / integration type test that performs the job and counts the number of SQL queries executed since it's a good
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tail -f staging.log | awk '/10.10.14.210/,/Completed/' | tee ip_address.log |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require "test_helper" | |
| require "support/matchers/scopes" | |
| require "support/double_helpers" | |
| describe Applicant do | |
| it do | |
| deprecation_warnings_for_file('app/models/applicant.rb').length.must_equal 0 | |
| end | |
| private |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env ruby | |
| # Usage: | |
| # To search for all occurrences in history of text "perform" in app/models/model.rb: | |
| # | |
| # git search-file-history perform app/models/model.rb | |
| # | |
| # TODO: A good future enhancement would be to show the commit right after the last occurrence, to see where it was removed. | |
| # | |
| text, filename = ARGV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'tempfile' | |
| t = Tempfile.new | |
| t.write('data') | |
| t.close # comment out to see difference | |
| if File.open(t.path).read == 'data' | |
| puts 'Tempfile was complete' | |
| else |
OlderNewer