Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

historical_requests url format #40

Open
@dtod

Description

@dtod

Description

Downloaded latest version and ran the historical_requests command

canvasDataCli historical-requests -c config.js

Date ranges were not part of the output.

In https://github.com/instructure/canvas-data-cli/blob/master/src/HistoricalRequests.js

getRangeForFile parses the url with url.split('/')[7]. However, when I look at our URLs, they are not in that format. They are:

https://bucket.amazonaws.com/ACCOUNT/requests/RANGE/etc/etc

Therefore the code should be url.split('/')[5]

I made this change in my local copy and it resolved the issue.

Additional Information

  • Node Version v18.2.0
  • Platform: Alpline 3.16.0
  • Logs: (If you can please run the CLI with: -l debug and provide us the debug logs.)

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