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

fix: skip deprecated keyboards #99

Merged
merged 2 commits into from
Aug 6, 2020

Conversation

mcdurdin
Copy link
Member

@mcdurdin mcdurdin commented Aug 4, 2020

The search now skips deprecated and non-Unicode keyboards by default. Passing the parameter obsolete=1 will list all keyboards including obsolete ones. Obsolete keyboards will always be listed last.

Front end on keyman.com keymanapp/keyman.com#147

Relates to #87.

The search now skips deprecated and non-Unicode keyboards
by default. Passing the parameter obsolete=1 will list
all keyboards including obsolete ones. Obsolete keyboards
will always be listed last.
@mcdurdin mcdurdin added this to the P10S12 milestone Aug 4, 2020
@mcdurdin mcdurdin added the fix label Aug 4, 2020
@mcdurdin mcdurdin mentioned this pull request Aug 4, 2020
15 tasks
$json = json_decode(json_encode($json));
$this->schema->in($json);
$this->assertJsonStringEqualsJsonFile(__DIR__ . '/fixtures/Search.2.0.khmer.json', json_encode($json), "Search for 'khmer' gives same results as Search.2.0.khmer.json");
}

public function testPhraseSearchResult()
{
$json = $this->s->GetSearchMatches(null, 'khmer angkor', 1);
$json = $this->s->GetSearchMatches(null, 'khmer angkor', 1, 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have any tests where the new obsolete parameter is 0?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not yet; I can add one.

Base automatically changed from fix/use-keyboards-bcp47-tag-in-links to staging August 6, 2020 02:08
@mcdurdin mcdurdin merged commit a01fbb4 into staging Aug 6, 2020
@mcdurdin mcdurdin deleted the fix/skip-deprecated-keyboards-by-default branch August 6, 2020 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants