Search for content API | Direction and Sort Field is not working as expected

新規投稿

コメント

5件のコメント

  • 正式なコメント
    Kourtney

    Hello All,

    I was able to reproduce the behavior of a bug with sorting with ASC/DESC, as well as using the sort_by query param. I will proceed with filing a bug ticket with our engineering team.

    I am not seeing the trimming you're seeing @Mulesoft. You will need to submit a support ticket from a paid account in order for our support team to further troubleshoot if needed.

    Best,

    Kourtney, Box Developer Advocate 

    コメントアクション パーマリンク
  • Mulesoft Developers

    Hi,

    we are also facing the same issue with sorting.

    If we make request to this endpoint

    https://{{api.box.com}}/2.0/search?ancestor_folder_ids=118924929165&query=file&created_at_range=2021-01-22T10:53:43-08:00&sort=modified_at&direction=ASC

    the response is (trimmed)

    {
    "total_count": 3,
    "entries": [
    {
    "created_at": "2021-01-26T01:09:49-08:00",
    "modified_at": "2021-01-26T01:09:49-08:00"
    },
    {
    "created_at": "2021-01-26T01:10:05-08:00",
    "modified_at": "2021-01-26T01:10:05-08:00"
    },
    {
    "created_at": "2021-01-26T01:09:58-08:00",
    "modified_at": "2021-01-26T01:09:58-08:00"
    }
    ],
    "limit": 30,
    "offset": 0
    }
     
    If we change query param direction=ASC to DESC the response is the same. This is not working as expected. Could you please look at it ? Really appreciate it. Thank you
    0
    コメントアクション パーマリンク
  • jeetprakash

    Hello Box Team,

    Waiting for your reply.

    0
    コメントアクション パーマリンク
  • Mulesoft Developers

    Hi Kourtney,

    thank you for your response. The trimmed version is only for demonstration purpose to not overload here with data. I just trimmed it here to show what is the problem. Thanks for you help.

    0
    コメントアクション パーマリンク
  • Erik Shagdar

    Hi BOX team - experiencing the same issue. Has this been resolved or is it still a known issue?

    0
    コメントアクション パーマリンク

投稿コメントは受け付けていません。