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 #293, Expand API for object queries #469

Merged

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented May 18, 2020

Describe the contribution

Implement OS_GetResourceName() and OS_ForEachObjectOfType(), which are new functions that allow for additional query capabilities. OS_ObjectIdToArrayIndex() modified to accept OS_OBJECT_TYPE_UNDEFINED as the first parameter, to allow it to work with any object type, not just objects for which a specific type is expected/known.

Also adds unit test (functional + coverage) for OS_ForEachObjectByType and OS_GetResourceName

Fixes #293

Testing performed
Run all unit tests, sanity check CFE and confirm normal operation

Expected behavior changes
No impact to current behavior as the FSW does not currently use any of these new APIs. Existing APIs are unchanged.

System(s) tested on
Ubuntu 20.04

Additional context
Querying objects by type is potentially needed for nasa/cFE#701 and nasa/FM#2

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

astrogeco and others added 2 commits May 13, 2020 11:49
Integration Candidate COMBINED 2020-04-29 and 2020-05-06
Implement OS_GetResourceName, OS_ForEachObjectByType
@astrogeco astrogeco added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label May 19, 2020
@astrogeco
Copy link
Contributor

CCB 20200520 - APPROVED

@skliper skliper removed the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label May 20, 2020
@astrogeco astrogeco changed the base branch from master to integration-candidate May 26, 2020 13:45
@astrogeco astrogeco merged commit 150f8c7 into nasa:integration-candidate May 26, 2020
@skliper skliper added this to the 5.1.0 milestone Jun 1, 2020
@jphickey jphickey deleted the fix-293-foreach-typefilter branch June 19, 2020 16:13
@jphickey jphickey mentioned this pull request Nov 5, 2020
@skliper skliper linked an issue Nov 5, 2020 that may be closed by this pull request
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Added tests to complete coverage on the following functions:
* CFE_ES_RunAppTableScan
* CFE_ES_ParseFileEntry
* CFE_ES_LoadModule
* CFE_ES_CleanUpApp
* CFE_ES_CleanupObjectCallback
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Fix nasa#469, Adding coverage tests for cfe_es_apps.c
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.

Add OS_QueueGetName() Expand resource object query options
3 participants