Skip to content

Conversation

@liammclennan
Copy link
Contributor

No description provided.

Copy link
Member

@nblumhardt nblumhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a few ideas/suggestions but LGTM 👍

if (resource.Equals("expressionindex"))
{
return "expressionindexes";
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW checking for trailing x and adding es would work in most cases, matching the y case below?

_connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory));

Options.Add(
"expression=",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e=|expression= ?


_output.ListEntities(list);

await Task.Delay(1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nooooo


Options.Add(
"i=|id=",
"The id of an index of a signal to suppress",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could drop of a signal here? The server might change around this point


var connection = _connectionFactory.Connect(_connection);
var toSuppress = await connection.Indexes.FindAsync(_id);
if (toSuppress.IndexedEntityType != IndexedEntityType.Signal)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make the request and let the server give the reason for any 400 response?

await ExportTemplates<ExpressionIndexEntity>(
id => _connection.ExpressionIndexes.FindAsync(id),
() => _connection.ExpressionIndexes.ListAsync(),
expressionIndex => expressionIndex.Id.Replace("expressionindex-", ""),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=> expressionIndex.Expression.All(char.IsLetterOrDigit) ? expressionIndex.Expression : expressionIndex.Id.Replace("expressionindex-", "") might improve file naming for trivial indexes?

@nblumhardt nblumhardt changed the title 'index' and 'expressionindex' commands seqcli index (list|suppress) and seqcli expressionindex (create|list|remove) commands Apr 23, 2024
@nblumhardt nblumhardt merged commit da903f4 into datalust:dev Apr 23, 2024
nblumhardt added a commit that referenced this pull request Apr 24, 2024
@KodrAus KodrAus mentioned this pull request May 1, 2024
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.

2 participants