Skip to content

Updating query with invalid DSL usage wipes query and causes console errors #84

@ianbattersby

Description

@ianbattersby

NB: using latest 3.3.0 branch in EventStore-UI

I was working on a query in debug mode (temporary one as created via query screen) when I changed it to have an invalid EventStore usage, instead of just not working or showing an error it wiped the query from the window. The console shows it has been deleted?

  • Write query
fromCategory("SomeCategory")
    .when({
        $init: function (s, e) {
            return {
                beenActive: false
            };
        },
        $any: function (s, e) {
            s.beenActive = true;
            return s;
        }
    });
  • Hit debug
  • Run without issue
  • Do something stupid
fromCategory("SomeCategory")
    .foreachStream()
    .when({
        $init: function (s, e) {
            return {
                beenActive: false
            };
        },
        $any: function (s, e) {
            s.beenActive = true;
            return s;
        }
    });
  • Hit update

Browser;
Current status: Loading definition...
Query: Empty (been wiped)

image

Console shows;

[15064,18,10:47:13.368] Disabling 'f2dfb5e8-dbf9-48f0-9e1d-eac22899570f' projection
[15064,18,10:47:13.490] projection stream '$projections-f2dfb5e8-dbf9-48f0-9e1d-eac22899570f-slave-1-checkpoint' deleted
[15064,18,10:47:13.490] projection stream '$projections-f2dfb5e8-dbf9-48f0-9e1d-eac22899570f-slave-0-checkpoint' deleted
[15064,18,10:47:13.490] projection stream '$projections-f2dfb5e8-dbf9-48f0-9e1d-eac22899570f-slave-2-checkpoint' deleted

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions