History log of /openbmc/entity-manager/src/ (Results 101 – 125 of 409)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
ba3c50cf14-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Use early returns in extractExposeActionRecordNames()

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ib41c5edf587ce0fc6b1c7260c94ff3affe92a01c

6890ae2c14-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Extract extractExposeActionRecordNames()

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I4758ff0ed0cf047bf2a56685bef2b9e76060ec7f

df92fa3914-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Bind and DisableNode Expose directives are actions

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Iee5331ed5dac3dd19235145fb1fe90eff03b0316

a3eae22214-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Split conditionals to improve readability

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I6596cb9580c5ad5e9a540f0c8622b1fabe1ebcba

08980a5a14-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Tidy condition using nlohmann::json::is_array()

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I59e79457d275fde03cc898dea608de2bab89c4ce

0088ed3014-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Un-nest continue by merging conditionals

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: If1d0230b0cf1cbe2e688a962b1c8de02298a79c4

c1c769da13-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Searching with 'recordName' means we found a 'record'

Rename fromLastJson to something sensible.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I2c400eb59d395129002fb473f3d

PerformScan: Searching with 'recordName' means we found a 'record'

Rename fromLastJson to something sensible.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I2c400eb59d395129002fb473f3dbd97e57968e72

show more ...

42c9ea6e13-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Reorder operations when processing old configuration

recordDiscoveredIdentifiers() doesn't modify the record held in
*fromLastJson, so move it to below pruneRecordExposes() to implement

PerformScan: Reorder operations when processing old configuration

recordDiscoveredIdentifiers() doesn't modify the record held in
*fromLastJson, so move it to below pruneRecordExposes() to implement a
logical flow of operations.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I516e4afa365a218a9042ccdb01e0fa62872a6529

show more ...

c0da0cc813-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Rename fromLastJson in recordDiscoveredIdentifiers()

Now that we're freed from the caller context give it a name that
represents it the object in the context of the function.

Signed-of

PerformScan: Rename fromLastJson in recordDiscoveredIdentifiers()

Now that we're freed from the caller context give it a name that
represents it the object in the context of the function.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie7c384b5f3fc9cc281c15193c150f383c3a295dd

show more ...

ba41b62713-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Drop hasTemplateName from recordDiscoveredIdentifiers()

The variable is only used once, just put the statement directly in the
early-return if-condition.

Signed-off-by: Andrew Jeffery

PerformScan: Drop hasTemplateName from recordDiscoveredIdentifiers()

The variable is only used once, just put the statement directly in the
early-return if-condition.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ia842df91e578fa74c4943535482b340ee5148e63

show more ...

6addc02813-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Extract recordDiscoveredIdentifiers()

Update the data structures tracking known names and unused indexes in a
function we can call from the loop processing the existing system
config.

PerformScan: Extract recordDiscoveredIdentifiers()

Update the data structures tracking known names and unused indexes in a
function we can call from the loop processing the existing system
config.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Id4ea1584dec5b67e689885a4f48b69581cd3ae2e

show more ...

4d0b12ef13-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Avoid `continue` when updating unused indexes

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I0b86a2d79710f0c549a24d5dda05fa272c7a32c5

8bc1244913-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Untemplated record name allows early continue

Continuing early in the loop reduces indentation.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ife17dbe9ab437e4779e86c3f75b4

PerformScan: Untemplated record name allows early continue

Continuing early in the loop reduces indentation.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ife17dbe9ab437e4779e86c3f75b4a1edd02ba051

show more ...

1d22175b13-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Reduce indentation with early continue for absent record

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I5e740034a0a08f7648a72c0666fee72be4bd0238

b241c69d13-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Concurrent modification of container needs visibility

We're removing an item from foundDevices while iterating over
foundDevices. Improve the visibility of what's going on, especially
g

PerformScan: Concurrent modification of container needs visibility

We're removing an item from foundDevices while iterating over
foundDevices. Improve the visibility of what's going on, especially
given the odd loop header (missing the 'post' action of the for-loop)
and the presence of many `continue` keywords.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I491b69369598e2454812c1945baacab5aeeeebb9

show more ...

742a7eb713-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Flip condition to avoid continue in pruneNullExposes()

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: If4789a0edd76c614e618dfd317a558ad6f17f097

5f05145813-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Return early from pruneRecordExposes()

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie5a128c4d3abcd817710b1116e3c10908aa1de8f

7a7faeda13-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Rename fromLastJson in pruneRecordExposes()

The initial code motion preserved the name to minimise the differences.
Rename the variable now so it's a little more sensible.

Signed-off-b

PerformScan: Rename fromLastJson in pruneRecordExposes()

The initial code motion preserved the name to minimise the differences.
Rename the variable now so it's a little more sensible.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I54ce197e25d280e6a1fd5ee5c6d74bdce974bea1

show more ...

db45148413-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Extract pruneRecordExposes()

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I95b56e7a1c1c3733e1d98501f5d3076da56a91f4

d60b147f12-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Rename ifacesIt to objectIt

Make it reflect that the returned pair represents an object (set of
interfaces) at the provided path.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change

PerformScan: Rename ifacesIt to objectIt

Make it reflect that the returned pair represents an object (set of
interfaces) at the provided path.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I99e0ae61e8c3e5848c5ede5a518d9178702cbed0

show more ...

d53ee41f12-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Lift name key update out of the for-loop

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ie4b6472cd6547f2b6d782927473858d4dd261a05

f898ea1a12-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Drop redundant assignment into system configuration

We just did this in the line above the diff hunk. It's enough to just
continue.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Chan

PerformScan: Drop redundant assignment into system configuration

We just did this in the line above the diff hunk. It's enough to just
continue.

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I1d36f5143822edcb5dbac175245c106a50b1ae4f

show more ...

09a09a6812-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Make getRecordName() static

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I7dbeb257d067de032327144e0e1046a3e838e33c

d45b1e7e12-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: Promote dbusObject from pointer to reference

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: Ia2094e141c0b2878e62dbd05884ca05e8bfe33ce

ef5c843312-Apr-2022 Andrew Jeffery <andrew@aj.id.au>

PerformScan: allInterfaces is a subtree result

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I4084170f43a49ff5bd99791372a613f27622b101

12345678910>>...17