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

Add Search for Busy that searches within the site #1185

Merged
merged 13 commits into from
Dec 13, 2017
Merged

Conversation

jm90m
Copy link
Contributor

@jm90m jm90m commented Dec 11, 2017

Fixes #1183

Changes:

  • Add search reducers & search components
  • uses askSteem API for now

screen shot 2017-12-11 at 11 51 09 am
screen shot 2017-12-11 at 11 51 15 am
screen shot 2017-12-11 at 11 51 21 am

We are limited on the data that askSteem has and it is sometimes not accurate, for example when it returns a user:

results: [
{
 rep: 60.67,
 type: "user",
 name: "ekitcho",
 created: "2016-07-24T22:50:48",
 post_count: 765,
 followers_count: 1374,
 following_count: 405
},...

The users post_count, followers_count, following_count is different then the actual values... so I decided not display it

* uses askSteem API for now
* Fixes: #1183
* Add search reducers & search components
@jm90m jm90m added the feature label Dec 11, 2017
@jm90m jm90m added this to the v2.2 milestone Dec 11, 2017
@jm90m jm90m self-assigned this Dec 11, 2017
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 11, 2017 16:56 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 11, 2017 23:01 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 12, 2017 00:36 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 12, 2017 00:40 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 12, 2017 00:41 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 12, 2017 01:43 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 13, 2017 02:29 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 13, 2017 09:31 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 13, 2017 14:41 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 13, 2017 14:56 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 13, 2017 15:14 Inactive
@bonustrack bonustrack temporarily deployed to busy-master-pr-1185 December 13, 2017 15:32 Inactive
Copy link
Contributor

@bonustrack bonustrack left a comment

Choose a reason for hiding this comment

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

LG

@jm90m
Copy link
Contributor Author

jm90m commented Dec 13, 2017

will merge after @Sekhmet approves

SteemAPI.sendAsync('lookup_accounts', [name, limit]);

export const getAllSearchResultPages = search => Promise.all([
fetch(
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be nice to have loop that would create array of promises instead of hardcoding those.


return _.reverse(_.sortBy(mergedResults, ['type', 'created']));
})
.catch(() => dispatch({ type: SEARCH_ASK_STEEM.ERROR })),
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it dispatch anyway if we will remove catch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure tbh, will it?

@jm90m jm90m merged commit a80a048 into master Dec 13, 2017
@jm90m jm90m deleted the jm-update-busy-search branch December 13, 2017 16:18
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.

3 participants