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

E2217. Refactor questionnaires_controller.rb #2320

Closed
wants to merge 42 commits into from

Conversation

War-Keeper
Copy link

Change 1: create_questionnaire method and tests removed, it didn't get used at all.

Change 2: create method itself is 49 lines long, converted to 3 different methods, with a specific function for better readability.

Change 3: three checks for whether a questionnaire is a QuizQuestionnaire removed.

Change 4: Bad if statements have been fixed

Change 5: Wiki Page updating

War-Keeper and others added 30 commits March 10, 2022 22:25
deleting create_questionnaire because it was not used anywhere
deleting test for create_questionnaire as it was not being used
Moved the @questionnaire assignments to another method, also moved the questionnaire_node creation to another method. This makes create easier to read
fixing rubocop formating errors
removing write spaces from between methods
@expertiza-travisci-bot
Copy link

Hey @War-Keeper,
Something went wrong with the build.

TravisCI finished with status errored, which means the build failed because of something unrelated to the tests, such as a problem with a dependency or the build process itself.

View build log

@coveralls
Copy link

Coverage Status

Coverage decreased (-33.9%) to 17.212% when pulling 8cc0bff on War-Keeper:beta into 51b4d6b on expertiza:beta.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-33.9%) to 17.212% when pulling 8cc0bff on War-Keeper:beta into 51b4d6b on expertiza:beta.

@coveralls
Copy link

coveralls commented Apr 10, 2022

Coverage Status

Coverage decreased (-0.5%) to 50.658% when pulling 01ea493 on War-Keeper:beta into 51b4d6b on expertiza:beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants