Skip to content

app environment_variables are invoked every time a new tap is chosen under the Application screens #5519

Description

@jcvrabo

When viewing an application, every time a new tab is chosen (Summary, Log Stream, Revisions, Routes, Variables, Services or Events), it seems like the environment_variables app endpoint is being invoked, issuing a new audit.app.environment.show event for the app every time.

This seems unnecessary and ends up "polluting" the events for the app.

Reproducing

Simply click on an app, going to its details screens and click around any of the side tabs to visualize its screen (logs, revisions, etc.). Finally click on the events tab and you will see one audit.app.environment.show event reported for every single tab click done.

Expected behaviour

It would be expected that only when clicking the Variables tab the event would be issued (meaning, only then would the environment_variables call be executed)

Observed behaviour

/v3/apps/:guid/environment_variables seems to be called every time a tab in application is clicked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions