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

chore: remove deprecated field data from keyboard_info usage 🎺 #204

Merged
merged 11 commits into from
Oct 25, 2023

Conversation

mcdurdin
Copy link
Member

Relates to keymanapp/keyman#9351.

@mcdurdin mcdurdin added this to the A17S19 milestone Aug 11, 2023
@mcdurdin mcdurdin added the chore label Aug 11, 2023
@mcdurdin mcdurdin changed the title chore: remove deprecated field data from keyboard_info usage chore: remove deprecated field data from keyboard_info usage 🎺 Aug 11, 2023
1. We still have the old data in the search test fixtures, so restore
   the fixtures.

2. The legacyid search is no longer relevant, so remove the test.
@mcdurdin mcdurdin marked this pull request as ready for review October 11, 2023 23:38
@mcdurdin mcdurdin marked this pull request as draft October 11, 2023 23:39
@mcdurdin
Copy link
Member Author

Thought this was ready to go and then I looked at the schema again oops

Synchronizes recent changes in keymanapp/keyman repo.
@mcdurdin mcdurdin marked this pull request as ready for review October 12, 2023 00:23
@mcdurdin mcdurdin removed this from the A17S23 milestone Oct 15, 2023
@mcdurdin mcdurdin added this to the A17S24 milestone Oct 15, 2023
@@ -113,23 +113,6 @@ public function testSearchByKeyboardId()
$this->assertEquals('keyboard_id', $json->keyboards[0]->match->type);
}

public function testSearchByLegacyKeyboardId()
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this get removed in a Search30Test.php?

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I don't understand the question?

Copy link
Contributor

Choose a reason for hiding this comment

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

Search20Test.php uses /search/2.0/search.json
https://github.com/keymanapp/api.keyman.com/blob/be87e96ec10df73534eb758403e1fdcd88f8d55c/tests/Search20Test.php#L14C37-L14C61

Do we need a Search30Test.php that uses /search/3.0/search.json for tests?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, because this is a test of the search 2.0 api, and we haven't got a search 3.0 api.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh wait

Copy link
Member Author

Choose a reason for hiding this comment

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

We've got a search 3.0 schema but not a search 3.0 api. Confuse much? Basically search 3.0 less data than search 2.0.

Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

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

lgtm

@mcdurdin mcdurdin merged commit 11d2e46 into staging Oct 25, 2023
2 checks passed
@mcdurdin mcdurdin deleted the chore/keyboard_info-remove-dep branch October 25, 2023 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants