Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Unable to filter slack activity for datastore components #440

Open
mroy-seedbox opened this issue Mar 4, 2025 · 4 comments
Open
Labels
feature request New feature or request

Comments

@mroy-seedbox
Copy link

The deno-slack versions

"deno-slack-sdk/": "https://deno.land/x/[email protected]/",
"deno-slack-api/": "https://deno.land/x/[email protected]/",

Deno runtime version

deno 2.1.9 (stable, release, aarch64-apple-darwin)
v8 13.0.245.12-rusty
typescript 5.6.2

OS info

ProductName:		macOS
ProductVersion:		15.3.1
BuildVersion:		24D70
Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T8122

Describe the bug

Unable to specify a datastore as a --component-id for the slack activity command.

Steps to reproduce

slack activity --component-id 'Datastore:something'

Expected result

It works just the same as when we specify a component ID for a workflow (Wf184DU7M25W) or a function (Fn615CUMCEN2).

Actual result

Check /Users/someone/.slack/logs/slack-debug-20250304.log for error logs
The following error was returned by the apps.activities.list Slack API method

Received an invalid response from the server (http_response_invalid)
   `{"ok":false,"error":"invalid_args","errors":["component_id is invalid"]}` Couldn't be parsed as a json object (unable_to_parse_json)

   json: cannot unmarshal string into Go struct field activityResponse.extendedBaseResponse.errors of type slackerror.ErrorDetail
@mroy-seedbox
Copy link
Author

Output from slack doctor:

SYSTEM

    ✔ Operating System (program scheduler and such)
        Version: darwin (amd64)

    ✔ Git (a version control system)
        Version: git version 2.39.5 (Apple Git-154)


SLACK

    ✔ CLI (this tool for building Slack apps)
        Version: v3.0.0

    ✔ Configurations (any adjustments to settings)
        System ID: a8d.................375
        Last updated: 2025-03-03 15:50:36 -08:00
        Experiments: bolt

    ✔ Credentials (your Slack authentication)
        Team domain: something
        Team ID: T...
        User ID: U...
        Last updated: 2025-03-04 14:29:14 -08:00
        Authorization level: Workspace
        Token status: Valid


PROJECT

    ✔ Configurations (your project's CLI settings)
        Manifest source: local
        Project ID: afa..........................330

    ✔ Runtime (foundations for the application)
        deno: 2.1.9
        Note: Applications deployed to Slack use Deno version 1.46.2 

        typescript: 5.6.2
        v8: 13.0.245.12-rusty

    ✔ Dependencies (requisites for development)
        deno_slack_sdk: 2.15.0
        deno_slack_api: 2.8.0

Errors: 0

@mroy-seedbox mroy-seedbox changed the title [BUG] <title> [BUG] Unable to filter slack activity for datastore components Mar 4, 2025
@mroy-seedbox
Copy link
Author

I realize that this is probably an issue with the Slack CLI, but there is no repo to report these yet (or to submit PRs).

@mroy-seedbox
Copy link
Author

Well, on the bright side, I just discovered the apps.activities.list API! 😅

@vegeris vegeris added the feature request New feature or request label Mar 7, 2025
@vegeris
Copy link

vegeris commented Mar 7, 2025

Hi there,

Thanks for posting! It's true that only workflow or function ID are currently supported for the component_id flag but we'll mark this as a feature request for the CLI!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants