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

refactor: renamed query-builder/RelationIdLoader.ts to QueryStrategyRelationIdLoader.ts #10857

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

RohanTalip
Copy link
Contributor

@RohanTalip RohanTalip commented Apr 29, 2024

Description of change

Prior to this pull request, there were 2 classes named RelationIdLoader, in:

  1. src/query-builder/RelationIdLoader.ts
  2. src/query-builder/relation-id/RelationIdLoader.ts

This caused me some confusion recently.

The first one was referenced in src/data-source/DataSource.ts but otherwise not really used, so the usage has been removed in this pull request. It was also referenced in src/query-builder/SelectQueryBuilder.ts but renamed to QueryStrategyRelationIdLoader when importing:

import { RelationIdLoader as QueryStrategyRelationIdLoader } from "./RelationIdLoader"

Hence it made sense to me to rename the first RelationIdLoader to QueryStrategyRelationIdLoader, to match what it was already being renamed to anyway.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run format to apply prettier formatting
  • npm run test passes with this change -- N/A - see circleci tests
  • This pull request links relevant issues as Fixes #0000 -- N/A
  • There are new or updated unit tests validating the change -- N/A
  • Documentation has been updated to reflect this change -- N/A
  • The new commits follow conventions explained in CONTRIBUTING.md

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.

None yet

1 participant