Skip to content

feat: migrate index to typescript - #16227

Draft
lohart13 wants to merge 9 commits into
sequelize:mainfrom
lohart13:indexes-typescript
Draft

lohart13 wants to merge 9 commits into
sequelize:mainfrom
lohart13:indexes-typescript

Conversation

@lohart13

@lohart13 lohart13 commented Jul 4, 2023 •

Copy link
Copy Markdown
Contributor

Pull Request Checklist

  • Have you added new tests to prevent regressions?
  • If a documentation update is necessary, have you opened a PR to the documentation repository?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Does the name of your PR follow our conventions?

Description Of Change

The PR migrates indexes methods to typescript.
Closes #17433

@lohart13
lohart13 force-pushed the indexes-typescript branch from 0c28eb0 to f66f8a6 Compare July 4, 2023 21:23
@WikiRik
WikiRik requested review from WikiRik and ephys July 6, 2023 19:43
@lohart13
lohart13 force-pushed the indexes-typescript branch 3 times, most recently from 4d3ef1f to 0742ed8 Compare July 22, 2023 03:29
@lohart13
lohart13 force-pushed the indexes-typescript branch from 0742ed8 to 4f9748f Compare July 30, 2023 20:53

@ephys ephys left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for the PR!

@lohart13
lohart13 force-pushed the indexes-typescript branch 5 times, most recently from 850a046 to 6e1de22 Compare August 30, 2023 22:44
@lohart13
lohart13 requested a review from ephys August 31, 2023 00:19
@lohart13
lohart13 force-pushed the indexes-typescript branch 3 times, most recently from 5b44c4e to a112042 Compare September 11, 2023 00:16
@lohart13
lohart13 force-pushed the indexes-typescript branch 3 times, most recently from c7c004a to 7447fe1 Compare September 19, 2023 01:45
@lohart13 lohart13 mentioned this pull request Oct 10, 2023
4 of 5 tasks
@lohart13
lohart13 force-pushed the indexes-typescript branch from 81557c9 to 750de30 Compare January 6, 2024 03:20
@lohart13
lohart13 force-pushed the indexes-typescript branch 2 times, most recently from b6b7dc0 to 71f0fe2 Compare January 29, 2024 22:26
@lohart13
lohart13 force-pushed the indexes-typescript branch from 8a10398 to 21353e7 Compare March 30, 2024 01:54
@lohart13
lohart13 force-pushed the indexes-typescript branch from 21353e7 to e2bc5fe Compare April 9, 2024 22:20
@sequelize-bot sequelize-bot Bot added the conflicted This PR has merge conflicts and will not be present in the list of PRs to review label Apr 10, 2024
@lohart13
lohart13 force-pushed the indexes-typescript branch from e2bc5fe to c5e96de Compare April 12, 2024 01:36
@sequelize-bot sequelize-bot Bot removed the conflicted This PR has merge conflicts and will not be present in the list of PRs to review label Apr 12, 2024
@lohart13
lohart13 force-pushed the indexes-typescript branch from 2d9d492 to ec57762 Compare April 16, 2024 23:26
@lohart13
lohart13 force-pushed the indexes-typescript branch 2 times, most recently from 0291a4e to 9a61dcb Compare October 14, 2024 00:02
@WikiRik

WikiRik commented Oct 25, 2024

Copy link
Copy Markdown
Member

@lohart13 this is ready for another review right? I should have some time soon to look through this again

@lohart13

Copy link
Copy Markdown
Contributor Author

@lohart13 this is ready for another review right? I should have some time soon to look through this again

Yes.

There are two open comments from the last review. If you're happy with them, you're welcome to mark them as completed.

@WikiRik WikiRik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I still need to review the addIndexQuery unit test file and the QueryInterface#{add,show,removeIndex} integration test file, but I don't really expect much to come from that. This is already amazing work and apologies that it took so long to review.

About the comment from ephys' review on using vs type. I'm fine if that gets changed in a follow-up PR so we can land this soon. Let me know what you prefer

@lohart13
lohart13 force-pushed the indexes-typescript branch from 43b4979 to 171bb1f Compare March 8, 2025 09:24
@lohart13

lohart13 commented Mar 8, 2025

Copy link
Copy Markdown
Contributor Author

I've made some changes to the query handling (mainly postgres and sqlite) to improve the showIndexes method. LMK if you have any comments on these.

Also, I've updated using to be method and type should now be returned for all supported dialects + db2.

Are there any other checks you want me to add to the add,show,remove indexes test?

@lohart13
lohart13 force-pushed the indexes-typescript branch from 171bb1f to d08a8e8 Compare March 9, 2025 21:42
@lohart13
lohart13 force-pushed the indexes-typescript branch from 81326e6 to dcfc16d Compare March 10, 2025 22:17
@sequelize-bot sequelize-bot Bot added the conflicted This PR has merge conflicts and will not be present in the list of PRs to review label Sep 29, 2025
@sequelize-bot
sequelize-bot Bot marked this pull request as draft October 26, 2026 00:26
@sequelize-bot

sequelize-bot Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Warning

This pull request has been automatically converted to draft because it is not ready to be merged.

Reason(s):

  • 🔀 Merge conflicts — This PR has merge conflicts that must be resolved before it can be merged.

Once you have addressed the issue(s) above, you may
mark this pull request as ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conflicted This PR has merge conflicts and will not be present in the list of PRs to review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'method' property is used for creating index with 'BTREE' type removeIndex not working with schema

3 participants