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

Update basic search to display curated BCOs #429

Open
HadleyKing opened this issue Jul 22, 2024 · 0 comments
Open

Update basic search to display curated BCOs #429

HadleyKing opened this issue Jul 22, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@HadleyKing
Copy link
Contributor

We want to provide a list of curated BCOs for the default search.
The curated list was decided in biocompute-objects/bco_api#312

The search function at

useEffect(() => {
if (searchStatus === "idle") {
const data = {
token: BCOAPI_TOKEN,
public_hostname: publicHostname,
search: "",
action: "bco_id"
}
dispatch(advSeachBcodb(data))
}
},[])

and

export const advSeachBcodb = createAsyncThunk(
"bcodb/advSeachBcodb",
async (data, thunkAPI) => {
try {
const results = await AuthService.advSearchBcodbAPI(data);
thunkAPI.dispatch(setSearch(data));
return results.data
} catch (error) {
const message =
(error.response &&
error.response.data &&
error.response.data.message) ||
error.message ||
error.toString();
thunkAPI.dispatch(setMessage(message));
return thunkAPI.rejectWithValue();
}
}
)

will need to be updated.

@HadleyKing HadleyKing added this to the 24.07.25 milestone Jul 22, 2024
@HadleyKing HadleyKing self-assigned this Jul 22, 2024
@HadleyKing HadleyKing modified the milestones: 24.07.25, 24.08.29 Jul 31, 2024
@tiwa1154 tiwa1154 added the enhancement New feature or request label Oct 4, 2024
@tiwa1154 tiwa1154 added this to Backlog Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants