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

Merge Dev into Main July 10 2024 #50

Merged
merged 360 commits into from
Jul 10, 2024
Merged

Merge Dev into Main July 10 2024 #50

merged 360 commits into from
Jul 10, 2024

Conversation

maxachis
Copy link

@maxachis maxachis commented Jul 10, 2024

Issues Included

All of these prepare us for our v2 project.

Additional PRs included:

maxachis and others added 30 commits May 26, 2024 08:05
The command to print out Bandit's output directly to the console in the GitHub Actions workflow was removed. Now, the results are only being uploaded as an artifact for review.
Changed the triggering event of Bandit Security Linting workflow from happening on both push and pull_request events to only on pull_request events.
Updated the Bandit Security Linting code to also include 'resources' and 'app.py', expanding the range of files which are scanned for potential security vulnerabilities. Previously, linting was only applied to 'middleware'.
…e_292_bandit

Add Bandit Security Linting to Github Actions
Modified SQL queries across multiple sources to use parameterized inputs instead of string formatting. This approach enhances security by preventing potential SQL injection attacks. The updates were applied to queries in files such as `login_queries.py`, `user_queries.py`, `reset_token_queries.py`, and others. Additionally, relevant tests were added to assure correct functioning.
…e_212_paramerize_sql_queries

Refactor SQL queries for enhanced security
…named_tuples

Replace tuple return type with namedtuple in security middleware
The query methods in the middleware and resource files are updated to remove the test parameters, leading to simplified code. The code accessibility is improved by not allowing externally supplied test results to be processed, reducing the possibility of incorrect outputs. All functions now rely only on database queries for data, resulting in a more robust system.
This commit mainly addresses the change in import paths for database connection objects and cursors across multiple test files. `tests.middleware.fixtures` has been moved to `tests.fixtures`, resulting in changes to import statements in the affected test files. This provides a cleaner organization and management of test cases, making code more maintainable.
This commit relocates the helper functions from 'tests/middleware' to 'tests', adjusting import paths in various test files accordingly. Additionally, the 'client' fixture in 'test_endpoints' is replaced with a new 'client_with_mock_db' fixture, and a new 'client_with_db' fixture is introduced in 'fixtures.py'. This enhances the organization and maintainability of the test infrastructure.
…e_280_replace_test_query_results

Remove test parameters from query functions
…t fixtures

This commit moves several helper functions from the `test_archives_queries.py` file to the `helper_functions.py` file which makes the test suite more maintainable and organized. The update also includes the introduction of new `client_with_db` fixture in 'helper_functions.py' for better testing setup.
This commit adds integration tests for various API endpoints such as search tokens, data sources map, data sources by id, and user interactions among others. These tests ensure that the API endpoints work as expected and return the correct data. They also help to identify any failing or incorrectly functioning endpoints promptly.
This update introduces improved readability of an extensive code base by adding docstrings to different functions across multiple pages. It also features some optimizations to several test functions for various endpoints, ensuring code clarity and facilitating easier debugging for future development work.
Refactored the "Authorization" and "Content-Type" headers for request in the integration test_archives.py to enhance readability. This adjustment will make the tests easier to understand and maintain in the future.
This reverts commit c26ced8.
This reverts commit c3abf39.
…e_305_add_integration_tests

Mc issue 305 add integration tests
…Data-Accessibility-Project/results-messaging

shuffle results messaging
EvilDrPurple and others added 25 commits July 5, 2024 13:50
# Conflicts:
#	middleware/quick_search_query.py
…_data_generator

Create TestDataGenerator
…e_337_create_database_client

Mc issue 337 create database client
Copy link

@josh-chamberlain josh-chamberlain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is up and working on dev!

@maxachis maxachis merged commit 7675868 into main Jul 10, 2024
8 of 11 checks passed
@josh-chamberlain josh-chamberlain changed the title Merge Dev into Main Merge Dev into Main July 10 2024 Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment