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 mini dashboard #1755

Merged
merged 2 commits into from
Oct 4, 2021
Merged

Fix mini dashboard #1755

merged 2 commits into from
Oct 4, 2021

Conversation

anirudhRowjee
Copy link
Contributor

This commit is a fix to issue #1750.
As a part of the changes to solve this issue, the following changes have
been made -

  1. Route registration for static assets has been modified
  2. the mut keyword on the scope has been removed.

This commit is a fix to issue meilisearch#1750.
As a part of the changes to solve this issue, the following changes have
been made -
1. Route registration for static assets has been modified
2. the `mut` keyword on the `scope` has been removed.
@curquiza curquiza added this to the v0.23.0 milestone Oct 2, 2021
@curquiza curquiza changed the title Fixes #1750 Fix mini dashboard Oct 2, 2021
curquiza
curquiza previously approved these changes Oct 2, 2021
Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

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

Thank you so much for this fix!!
I tested, it works 😄

We wait for the Marin's approval before any merge 🙂

@@ -147,7 +147,7 @@ pub fn dashboard(config: &mut web::ServiceConfig, enable_frontend: bool) {

if enable_frontend {
let generated = generated::generate();
let mut scope = web::scope("/");
let scope = web::scope("/");
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
let scope = web::scope("/");

you can remove this line, and the one at line 167, since they are now useless

Copy link
Contributor

@MarinPostma MarinPostma left a comment

Choose a reason for hiding this comment

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

One small change and we can merge :)

thank you for contributing to MeiliSearch!

1. Removed redundant scope registration
@anirudhRowjee
Copy link
Contributor Author

All tests green :) thank you for this opportunity.

Copy link
Member

@curquiza curquiza left a comment

Choose a reason for hiding this comment

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

Thank you so much @anirudhRowjee! Especially for your reactivity

If you are participating in Hacktoberfest, and you would like to receive a small gift from MeiliSearch too, please complete this form.

bors merge

@curquiza curquiza linked an issue Oct 4, 2021 that may be closed by this pull request
Copy link
Contributor

@MarinPostma MarinPostma left a comment

Choose a reason for hiding this comment

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

Thanks you!! @curquiza you can merge this pr

@bors
Copy link
Contributor

bors bot commented Oct 4, 2021

@bors bors bot merged commit 607e287 into meilisearch:main Oct 4, 2021
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.

The mini-dashboard does not work anymore
3 participants