NASA-AMMOS / NASA-AMMOS/BSL

Provide frontend function to search for blocks by type

Open
#160 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C
Stars
14
Forks
9
Avg merge
2d 12h
Merged PRs (30d)
33

Description

This would avoid the need for iterating through all blocks within each policy provider for the common case of looking up blocks by their type code.

It is expected that each BPA will already have a fast lookup by type code already, so an associated host callback could make use of that fast lookup. As a fallback, the callback pointer can be allowed to be NULL in which case the BSL backend can iterate through all blocks as the example PP does in get_target_block_id().

This is follow-on to #61 for a later release.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the frontend function and associated host callback described in the issue, then read the example PP implementation of get_target_block_id(). Done means the API supports a fast provider lookup by type code while allowing a NULL callback to fall back to iterating through blocks.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
api, backend-api-design
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.