Skip to content
Snippets Groups Projects

feat(qb): simple count

Merged Leonardo Christino requested to merge feat/count into main
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
1 import { SchemaAttribute } from '../../..';
2 import { Handles, QueryElementTypes } from '../reactflow';
3 import { QueryGraphEdgeAttribute, QueryGraphEdgeHandle, QueryGraphNodes } from './model';
4
5 const metaAttribute: Record<string, QueryGraphEdgeAttribute> = {
6 '(# conn)': {
  • This is user-facing information, perhaps its a bit more friendly to not abbreviate, I think there is the space for it? e.g. "# of connections" or even "number of connections". Would it be possible to contextualize the attribute, e.g., "# of Movie connections"? This would make it much clearer.

    Also: why the choice to put this one between brackets, to indicate it is a meta attribute? Perhaps it would be cleaner to have a separate icon for it (not in this PR tho, new asana task) :)

  • Leonardo Christino changed this line in version 4 of the diff

    changed this line in version 4 of the diff

  • Please register or sign in to reply
  • We identified an issue with meta attributes not showing up, this was addressed in e878e3ff.

    As far as I can judge (not fully familiar with the codebase) I think it looks good. Nice to make attributes non-optional, its an array that can be empty so null does not make a lot of sense to me.

    LGTM! :)

  • Dennis Collaris approved this merge request

    approved this merge request

  • added 1 commit

    • e26eba06 - chore(qb): change # conn to # Connections

    Compare with previous version

  • :tada: This MR is included in version 1.62.0 :tada:

    The release is available on GitLab release.

    Your semantic-release bot :package: :rocket:

  • Please register or sign in to reply
    Loading