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

Close #831, allow author to delete interviews from interview list #921

Merged
merged 15 commits into from
Jul 11, 2024

Conversation

plocket
Copy link
Collaborator

@plocket plocket commented Jul 8, 2024

In this PR, I have:

  • Added tests for any new features or bug fixes (if relevant)
  • Added my changes to the CHANGELOG.md at the top, under the "Unreleased" section
  • Ensured issues that this PR closes will be automatically closed

Reason for this PR

Until now, interview sessions that the tests created were left on the server. Now, a test that logs in as a user can delete their interview session as long as the author also includes that user's API key in the "start interview" Step.

Adjusts repo's workflows and secrets to include new information. This means we should probably update the instructions for new collaborators. For the github_server workflow, that meant creating a low-level user in the new container to log in, and delete interviews, separately from the admin user. I currently don't remember what test that broke. It was something about the admin user being able to see all interviews and delete all interviews.

Also adjusts log code tests to ignore feature files, or any files in the ALKilnTests folder, when checking for codes. That way, our feature tests can check that output/reports have the correct log codes. Still need to change "tests/log_codes/check_codes.sh" to "check_codes.sh" to work properly in GitHub workflows.

Switched to adding our own users[0] question because of changes in Assembly Line.

Links to any solved or related issues

Closes #831

Any manual testing I have done to ensure my PR is working

Visually confirmed that interviews were created and then deleted on the server.

This is because AL experimentally removed its `users[0]` question
and that may be a temporary change
not all authors will give their ALKiln account admin permissions,
(which is what we recommend anyway) so they can only delete their
own interviews
API key permissions, testing whether interviews have been
deleted.
workflows to include new env vars, create env vars on GitHub.
...deleting interviews is per user, so the dev api key
is irrelevant
@plocket plocket merged commit d684b33 into v5 Jul 11, 2024
7 checks passed
@plocket plocket deleted the 831_interviews branch July 11, 2024 14:18
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.

Cleanup Task to Delete incomplete Interviews
1 participant