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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature ananlysis jobs items integration #300

Merged
merged 7 commits into from
Aug 5, 2016

Conversation

atruskie
Copy link
Member

@atruskie atruskie commented Jul 31, 2016

Feature: Analysis Jobs iintegration complete.
Analysis Jobs' models and controllers were previously setup.
This commit introduces changes that make the jobs workflow
functionally complete.

Closes #192. Closes #193. Closes #200.

Also included is a comprehensive suite of API level specs that
simulate and tests many full-lifecycle scenarios of the analysis
jobs system.

This is a combination of 14 commits that were squashed when
cleaning up this work.

  • Integration test definitions for AnalysisJobs/Items
  • Started implementing tests
  • Implementation work
  • Got :new integration tests working
  • Made a fake resque job
  • Made job notification emails
  • Fixed faulty update_status_timestamps method and fixed associated tests
  • Hardened state transition test for AnalysisJobsItem
  • more work on processing stage
  • almost got prepare working
  • Begun adding aasm workflow to analysis_jobs_items
  • Got most of processing tests working
  • Added extra scripts field to support arbitrary options for analysis_action
  • Work on processing analysis_jobs_items
  • Fixed strong params definition for both AnalysisJobs and AnalysisJobsItems
  • 75% of unit tests complete
  • Added timecop for mimicking time in tests (later removed this gem as well - it wasn't needed)
  • All creating an analysis job request specs now work! 馃帀
  • Added support for deleting analysis jobs. Analysis jobs can only be deleted when their status is processing, suspended, or completed.
  • Also added tests for AnalysisJobs and AnalysisJobsItems

Analysis Jobs' models and controllers were previously setup.
This commit introduces changes that make the jobs workflow
functionally complete.

Also included is a comprehensive suite of API level specs that
simulate and tests many full-lifecycle scenarios of the analysis
jobs system.

This is a combination of 14 commits that were squashed when
cleaning up this work.

- Integration test defintions for AnalysisJobs/Items
- Started implementing tests
- Implementation work
- Got :new integration tests working
- Made a fake resque job
- Made job notification emails
- Fixed faulty update_status_timestamps method and fixed associated tests
- Hardened state transition test for AnalysisJobsItem
- more work on processing stage
- almost got prepare  working
- Begun adding aasm workflow to analysis_jobs_items
- Got most of processing tests working
- Added extra scripts field to support arbitrary options for analysis_action
- Work on processing analysis_jobs_items
- Fixed strong params definition for both AnalysisJobs and AnalysisJobsItems
- 75% of unit tests complete
- Added timecop for micking time in tests (later removed this gem as well - it wasn't needed)
- All creating an analysis job request specs now work! 馃帀
- Added support for deleting analysis jobs. Analysis jobs can only be deleted when their status is processing, suspended, or completed.
- Also added tests for AnalysisJobs and AnalysisJobsItems
Changed strong params from :log to :raise for DEV and TEST environments
in a previous commit. Now fixed up the related tests.
The mege conflict in ef0155e was
massive. For clarity split commit into two parts, the basic merge
conflict, and then the bugs that it produced (only exposed when running
tests).

- WARNING: Strong params now throws an exception for all parameter
payloads in dev an test. However, payloads with invalid params will
simply be filtered out in staging and production environments.
- Fixed bug in `rails_helper.rb` which did not reseed the database after
truncating it in request specs
- Updated version of acts_as_paranoid no longer adds unecessary
parentheses - fixed hard coded SQL tests
- Made the `permissions_controller.rb` tests more robust to strong
params hardening. They will now work even when
`action_on_unpermitted_parameters` is set to `:raise`
@coveralls
Copy link

coveralls commented Aug 5, 2016

Coverage Status

Coverage decreased (-33.7%) to 49.334% when pulling 6791dad on feature-ananlysis-jobs-items-integration into e026294 on develop.

@atruskie
Copy link
Member Author

atruskie commented Aug 5, 2016

I've run these tests on two separate machines and they passed. The CI tests failed because of an incorrect postgres version.

@atruskie atruskie merged commit 1032106 into develop Aug 5, 2016
@coveralls
Copy link

coveralls commented Aug 5, 2016

Coverage Status

Coverage increased (+0.4%) to 83.441% when pulling 0e80ee2 on feature-ananlysis-jobs-items-integration into e026294 on develop.

@atruskie atruskie deleted the feature-ananlysis-jobs-items-integration branch June 4, 2020 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants