<feed xmlns='http://www.w3.org/2005/Atom'>
<title>BMC/OpenBmc/bmcweb.git/redfish-core/lib/storage_controller.hpp, branch master</title>
<subtitle>A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC (mirror)</subtitle>
<id>https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/'/>
<updated>2026-09-11T16:58:43+00:00</updated>
<entry>
<title>redfish-core: Refactor StorageController lambda</title>
<updated>2026-09-11T16:58:43+00:00</updated>
<author>
<name>Yuvakumar Selvamani</name>
<email>yuvakumars@ami.com</email>
</author>
<published>2026-08-20T07:17:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=7e284b8a91bcdec2c4afb560f753f5030642e1ff'/>
<id>urn:sha1:7e284b8a91bcdec2c4afb560f753f5030642e1ff</id>
<content type='text'>
Extract the long D-Bus GetProperty callback lambda in
populateStorageController() into a named function,
afterGetStorageControllerPresent(), bound via std::bind_front(), per the
&lt;10 line lambda coding standard in docs/COMMON_ERRORS.md.

Tested:
- No functional change.
- Build successfully compiled.
- Redfish Service Validator passed with no new errors or warnings
  introduced.

Change-Id: I0c93e8b2e2381a14cc7d8a7299cd28af9e086b28
Signed-off-by: Yuvakumar Selvamani &lt;yuvakumars@ami.com&gt;
</content>
</entry>
<entry>
<title>Flag long lambdas</title>
<updated>2026-07-01T17:10:08+00:00</updated>
<author>
<name>Ed Tanous</name>
<email>etanous@nvidia.com</email>
</author>
<published>2026-06-22T16:53:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=8176ae6778015743b77e8744c046bc50edf13cc4'/>
<id>urn:sha1:8176ae6778015743b77e8744c046bc50edf13cc4</id>
<content type='text'>
Long lambdas have been documented as an anti-pattern for some time.[1]
Despite this being generally understood, bmcweb has a long ways to go
cleaning these up, and routinely code is submitted in violation of this
anti-pattern.

Invent an ast-grep rule that can identify when new examples of this
anti-pattern are added, and ignore the existing 200+ examples that are
in the codebase already using ast-grep ignore.  These flags will give us
something to search for as we clean this up, and will help to prevent
new instances from being added unintentionally.

[1] https://github.com/openbmc/docs/blob/master/anti-patterns.md#very-long-lambda-callbacks

Tested: Comment only change.  ast-grep passes.  Manually removing an
ast-grep ignore flag shows as a failure in ast-grep scan

Change-Id: I77d634a393884969f184d2c39c02cc08288d5a29
Signed-off-by: Ed Tanous &lt;etanous@nvidia.com&gt;
</content>
</entry>
<entry>
<title>sdbusplus: use shorter type aliases</title>
<updated>2026-04-15T01:50:54+00:00</updated>
<author>
<name>Patrick Williams</name>
<email>patrick@stwcx.xyz</email>
</author>
<published>2026-04-14T11:26:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=36498b406abb3be754e84072d50f16d9dcbbfa8f'/>
<id>urn:sha1:36498b406abb3be754e84072d50f16d9dcbbfa8f</id>
<content type='text'>
The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines.  Possible replacements are for:
  * bus_t
  * exception_t
  * manager_t
  * match_t
  * message_t
  * object_t
  * slot_t
  * object_path

Change-Id: Iace20f9ad26e8d9dc234979e7a4087d599da2641
Signed-off-by: Patrick Williams &lt;patrick@stwcx.xyz&gt;
</content>
</entry>
<entry>
<title>Fix routes missing trailing slash</title>
<updated>2026-03-24T21:42:34+00:00</updated>
<author>
<name>Davy Marrero</name>
<email>dmarrero@nvidia.com</email>
</author>
<published>2026-03-13T00:55:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=a39a77803146819e34e53605cb22d240ac446f73'/>
<id>urn:sha1:a39a77803146819e34e53605cb22d240ac446f73</id>
<content type='text'>
bmcweb's route handler generates handlers for both /foo/ and /foo
when a route is registered with a trailing slash.  This change adds
trailing slashes to 24 routes that were missing them.

Existing clients are not affected: the router already accepted
both forms.  This change makes the route registrations consistent
and lets the trailing-slash ast-grep rule pass without suppressions.

Routes using &lt;path&gt; captures already match everything and do not
need a trailing slash, so those are excluded in the ast-grep rule.

Tested: ast-grep scan --error exits 0.

Change-Id: I9de641bd8ffec773b313b7e4da9034be0fd7e8e8
Signed-off-by: Davy Marrero &lt;dmarrero@nvidia.com&gt;
</content>
</entry>
<entry>
<title>Use boost::urls::format</title>
<updated>2026-01-20T23:22:21+00:00</updated>
<author>
<name>Brad Bishop</name>
<email>bradbish@qti.qualcomm.com</email>
</author>
<published>2025-09-04T02:04:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=6f49f7280851415b2bdd66f0435917d3118c90fa'/>
<id>urn:sha1:6f49f7280851415b2bdd66f0435917d3118c90fa</id>
<content type='text'>
boost::urls::format is specifically meant for URL construction. It
handles encoding like percentage encoding which std::format does not.

Change-Id: I16c1467c856e36f072bd4248186b9819e40ae228
Signed-off-by: Brad Bishop &lt;bradbish@qti.qualcomm.com&gt;
</content>
</entry>
<entry>
<title>redfish-core: Refactor storage.hpp</title>
<updated>2025-11-24T20:01:04+00:00</updated>
<author>
<name>Christopher Meis</name>
<email>christopher.meis@9elements.com</email>
</author>
<published>2025-10-23T12:46:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/BMC/OpenBmc/bmcweb.git/commit/?id=7bf29ab37ad696aed3f0580ef0f6cb90864c89ee'/>
<id>urn:sha1:7bf29ab37ad696aed3f0580ef0f6cb90864c89ee</id>
<content type='text'>
This change splits out storage controller and storage drive route
setup and code into new files and unifies the call of route setup
for storage, storage controller and storage drive collection and
single storage controller properties.

Tested:
CI ran through without errors, build testing succeeded.

Change-Id: I234eb034205b7e6c3a5f307172019d53d42de6e3
Signed-off-by: Christopher Meis &lt;christopher.meis@9elements.com&gt;
</content>
</entry>
</feed>
