Skip to content

Commit 72afcb2

Browse files
committed
WIP
1 parent bb97c1d commit 72afcb2

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.github/instructions/esp-service-interface.instructions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ applyTo: '**/*.ecm'
1010
- Increment the `version` and `default_client_version` attributes of the `ESPservice` element.
1111
- Include the `exceptions_inline` attribute in any new `ESPresponse` and `ESPmethod` element.
1212

13+
## Version Bumping
14+
- Always bump the `ESPservice` `version` and `default_client_version` when changing request/response schemas or behavior.
15+
- Use the next sequential version string (for example, if current is 1.67, bump to 1.68).
16+
- Keep changes backward compatible; do not remove or change existing fields without a version gate.
17+
1318
## Naming Conventions
1419
- Use `PascalCase` for element names.
1520
- Use lower case for native types such as `string`, `integer`, `boolean`, etc.

dali/base/dadfs.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14127,11 +14127,15 @@ static IPropertyTreeIterator *deserializeFileAttrIterator(MemoryBuffer& mb, unsi
1412714127

1412814128
if (options.includeField(DFUQResultField::size))
1412914129
{
14130-
// JCSMORE - I am not sure what the point of this is, with or without it, a blank @size does not affect sort order
14131-
// and EclWatch seems to use the @size (DFUQResultField::origsize) for size column anyway
14132-
// See special handling in SerializeFileAttrOptions::readFields() to include origsize if size is requested
14130+
// Size field is notionally the size on disk
1413314131
const char *propName = getDFUQResultFieldName(DFUQResultField::size);
14134-
attr->setPropInt64(propName, attr->getPropInt64(getDFUQResultFieldName(DFUQResultField::origsize), -1));//Sort the files with empty size to front
14132+
attr->setPropInt64(propName, isCompressed(*attr) ? attr->getPropInt64(getDFUQResultFieldName(DFUQResultField::compressedsize), -1) : attr->getPropInt64(getDFUQResultFieldName(DFUQResultField::origsize), -1));
14133+
}
14134+
14135+
if (options.includeField(DFUQResultField::origsize))
14136+
{
14137+
const char *propName = getDFUQResultFieldName(DFUQResultField::origsize);
14138+
attr->setPropInt64(propName, attr->getPropInt64(getDFUQResultFieldName(DFUQResultField::origsize), -1));
1413514139
}
1413614140

1413714141
if (options.includeField(DFUQResultField::recordcount))

esp/services/ws_dfu/ws_dfuService.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3769,6 +3769,8 @@ void CWsDfuEx::setDFUQuerySortOrder(IEspDFUQueryRequest& req, StringBuffer& sort
37693769
static const std::unordered_map<std::string_view, std::string_view> legacyMappings =
37703770
{
37713771
{"FileSize", "@DFUSFsize"},
3772+
{"Size", "@origsize"},
3773+
{"CompressedFileSize", "@compressedSize"},
37723774
{"ContentType", "@kind"},
37733775
{"IsCompressed", "@compressed"},
37743776
{"Records", "@recordcount"},

0 commit comments

Comments
 (0)