Skip to content

Fix #125, correct accept/reject counter increments#167

Merged
astrogeco merged 1 commit intonasa:mainfrom
jphickey:fix-125-cmd-counts
Jan 18, 2022
Merged

Fix #125, correct accept/reject counter increments#167
astrogeco merged 1 commit intonasa:mainfrom
jphickey:fix-125-cmd-counts

Conversation

@jphickey
Copy link
Copy Markdown
Contributor

Describe the contribution
For commands that rely on CF_TsnChanAction(), this is documented as returning a count of the number of transactions affected. Therefore, a return value >0 means that the operation was successful (or at least it matched something), and a return value <=0 means failure.

  • Fixes a case where the function did not adhere to its documented return
  • Fixes passing the result to CF_CmdCond() which needs a translation.

Fixes #125

Testing performed
Build and sanity check CF

Expected behavior changes
Correct counters being incremented now

System(s) tested on
Ubuntu 21.10

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

For commands that rely on CF_TsnChanAction(), this is documented as
returning a count of the number of transactions affected.  Therefore,
a return value >0 means that the operation was successful (or at least
it matched something), and a return value <=0 means failure.

- Fixes a case where the function did not adhere to its documented return
- Fixes passing the result to CF_CmdCond() which needs a translation.
@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Jan 12, 2022
@astrogeco astrogeco requested review from skliper and zanzaben January 18, 2022 05:57
@astrogeco astrogeco merged commit 1d9719b into nasa:main Jan 18, 2022
@astrogeco astrogeco added CCB:Approved and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Jan 19, 2022
@astrogeco
Copy link
Copy Markdown
Contributor

CCB:2022-01-19 APPROVED

  • Makes behavior match documentation

@jphickey jphickey deleted the fix-125-cmd-counts branch March 11, 2022 15:48
@skliper skliper added this to the Draco milestone Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command valid and rejected counters do not increment correctly

4 participants