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

Bugfixes storage postgres interface #254

Closed
wants to merge 33 commits into from

Conversation

HenningNormann
Copy link
Contributor

@HenningNormann HenningNormann commented Aug 30, 2023

Fixes since last review. The migration files are kept in the same version to make them more readable until prod convertion. The database is updated manually to support this.

Description

  • Moved all filter logic in GetInstancesFromQuery into the database
  • Added index for partyid lastchanged
  • Changed delete procedures to functions to be able to return row count

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)
  • All tests run green

Documentation

  • User documentation is updated with a separate linked PR in altinn-studio-docs. (if applicable)

pgcom.Parameters.AddWithValue(NpgsqlDbType.Text, archivedPredicate != null ? queryParams["status.isArchived"].First() : DBNull.Value);
if (_logger.IsEnabled(LogLevel.Debug))
{
_logger.LogDebug(FormatManualFunctionCall(postgresParams));

Check failure

Code scanning / CodeQL

Log entries created from user input High

This log entry depends on a
user-provided value
.
This log entry depends on a
user-provided value
.
…ting cosmos cleanup and reuse of existing code.
@SandGrainOne
Copy link
Member

There are failing tests.

@sonarcloud
Copy link

sonarcloud bot commented Sep 22, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 46 Code Smells

2.8% 2.8% Coverage
2.1% 2.1% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Copy link

sonarcloud bot commented Nov 28, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 45 Code Smells

2.7% 2.7% Coverage
2.0% 2.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@HenningNormann HenningNormann deleted the feature/191-postgresql-poc-4 branch January 22, 2024 10:32
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.

3 participants