Skip to content

Publicar V-01.04#4

Merged
AtlasLabs797 merged 1 commit intomainfrom
V-01.04
Apr 25, 2026
Merged

Publicar V-01.04#4
AtlasLabs797 merged 1 commit intomainfrom
V-01.04

Conversation

@AtlasLabs797
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6ad0b10294

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +105 to +107
if (request.NuevaFechaVencimiento < request.NuevaFechaInicio)
{
throw new InvalidOperationException("La fecha de vencimiento no puede ser anterior a la fecha de inicio");
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Reject default DateOnly values in plazo fijo renewal

RenovarAsync only checks that NuevaFechaVencimiento is not earlier than NuevaFechaInicio, but it never validates that the client actually sent real dates. With ASP.NET model binding, a payload like {} (or missing date fields) binds both DateOnly values to 0001-01-01, passes this check, and then overwrites the plazo fijo with year-1 dates. That silently corrupts maturity data and can immediately force incorrect vencido status in later jobs.

Useful? React with 👍 / 👎.

Comment on lines +87 to +89
if (tipoTitular.HasValue)
{
query = query.Where(c => _dbContext.Titulares.Any(t => t.Id == c.TitularId && t.Tipo == tipoTitular.Value));
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Honor incluirEliminados in tipoTitular filtering

When incluirEliminados=true, the cuentas query correctly switches to Cuentas.IgnoreQueryFilters(), but the new tipoTitular predicate still queries _dbContext.Titulares with its default soft-delete filter. This means cuentas tied to soft-deleted titulares are incorrectly excluded whenever tipoTitular is used, so admin users cannot retrieve the full deleted dataset despite explicitly requesting it.

Useful? React with 👍 / 👎.

@AtlasLabs797 AtlasLabs797 merged commit 6d652b2 into main Apr 25, 2026
7 checks passed
@AtlasLabs797 AtlasLabs797 deleted the V-01.04 branch April 25, 2026 22:26
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.

1 participant