Skip to content

refactor: remove redundant custody extraInclude in kit loader#2028

Merged
DonKoko merged 2 commits intomainfrom
2020-bug-kit-item-link-broken-in-availability-view
Sep 10, 2025
Merged

refactor: remove redundant custody extraInclude in kit loader#2028
DonKoko merged 2 commits intomainfrom
2020-bug-kit-item-link-broken-in-availability-view

Conversation

@DonKoko
Copy link
Copy Markdown
Contributor

@DonKoko DonKoko commented Sep 10, 2025

The custody field was being selected in both GET_KIT_STATIC_INCLUDES and extraInclude, causing redundancy. Removed the extra custody select since GET_KIT_STATIC_INCLUDES already provides all necessary custody fields including createdAt.
Moreover this resolves #2024 as the extra include was not selecting createdAt so that was causing a bug.

The custody field was being selected in both GET_KIT_STATIC_INCLUDES
and extraInclude, causing redundancy. Removed the extra custody select
since GET_KIT_STATIC_INCLUDES already provides all necessary custody
fields including createdAt.
@vercel
Copy link
Copy Markdown

vercel bot commented Sep 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
shelf-docs Ignored Ignored Preview Sep 10, 2025 10:09am

@DonKoko DonKoko requested a review from Copilot September 10, 2025 10:08
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes redundant custody field selection in the kit loader to fix a bug where createdAt was missing from the custody data. The custody field was being selected in both GET_KIT_STATIC_INCLUDES and extraInclude, causing duplication and incomplete data selection.

Key Changes

  • Removed duplicate custody selection from extraInclude parameter in getKit call
  • Simplified the loader by relying on GET_KIT_STATIC_INCLUDES for all custody data
  • Fixed bug #2024 where createdAt field was missing from custody data

@DonKoko DonKoko merged commit ca5d908 into main Sep 10, 2025
6 checks passed
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.

[Bug]: Kits Custody 'Since Date/Time' Bug

2 participants