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

Sorting capabilities in list entity operation [pending: orderBy=$near] #1103

Closed
fgalan opened this issue Jul 26, 2015 · 11 comments
Closed

Sorting capabilities in list entity operation [pending: orderBy=$near] #1103

fgalan opened this issue Jul 26, 2015 · 11 comments

Comments

@fgalan
Copy link
Member

fgalan commented Jul 26, 2015

Eg:

http://broker.example.org/entities?type=Room&q=temperature<=22&sort=seatNumber

The parameter could be also used with a sequence of attributes, e.g sort=seatNumber,temperature. ASC and DESC order are specified with a + (default) and - prefix.

sort=+seatNumber,-temperature

Feasibility assessment with Mongo shell: https://gist.github.com/fgalan/efd63ef261fa33d91784

@jmcanterafonseca jmcanterafonseca changed the title Sorting capabilities in list entity operatoin Sorting capabilities in list entity operation Aug 6, 2015
@fgalan
Copy link
Member Author

fgalan commented Sep 22, 2015

Sorting by creDate and modDate (definitive names pending) should be also possible.

@fgalan
Copy link
Member Author

fgalan commented Sep 22, 2015

SOF answers that need to be edited when this issue gets completed: http://stackoverflow.com/questions/32703011/change-order-of-orion-response/32712248#32712248

@fgalan
Copy link
Member Author

fgalan commented Feb 3, 2016

Take into account talso sort by "nearest point". This PR may be useful: #1651.

@fgalan
Copy link
Member Author

fgalan commented Feb 3, 2016

SOF answer that need to be edited when this issue gets completed: http://stackoverflow.com/questions/35172155/orion-context-broker-nearest-to-point-query

@fgalan fgalan added this to the 0.28.0 milestone Feb 4, 2016
@fgalan fgalan self-assigned this Feb 18, 2016
@fgalan
Copy link
Member Author

fgalan commented Feb 19, 2016

Code implementation completed in PR #1815. However, let's keep this issue opened while doc for NGSIv2 get reviewed (and eventually updated) and the questions in SOF edited.

@fgalan
Copy link
Member Author

fgalan commented Feb 22, 2016

At the end, the name of the URI parameter (to use in the documentation) is orderBy

@fgalan
Copy link
Member Author

fgalan commented Feb 22, 2016

Doc modifications describing orderBy implemented in PR #1818. However, let's keep this issue opened until orderBy=$near orderBy=geo:proximity gets implemented (issue name will be adjusted).

@fgalan fgalan changed the title Sorting capabilities in list entity operation Sorting capabilities in list entity operation [pending: orderBy=$near] Feb 22, 2016
@fgalan
Copy link
Member Author

fgalan commented Feb 23, 2016

@fgalan fgalan closed this as completed Feb 23, 2016
@fgalan fgalan modified the milestones: QATestPending, 0.28.0 Mar 10, 2016
@fgalan fgalan assigned iariasleon and unassigned fgalan Mar 10, 2016
@fgalan
Copy link
Member Author

fgalan commented Mar 10, 2016

QA Acceptance Test pending. Reopened and asigned to QATestPending milestone.

@fgalan fgalan reopened this Mar 10, 2016
@iariasleon
Copy link
Contributor

pending tests are created in its feature associated

@fgalan
Copy link
Member Author

fgalan commented Feb 15, 2018

Issues in milestone QATestPendingNotE2ECovered are going to be closed (it is not realistic to think we would have people working on behave testing at the present moment). However, issue is labeled with QATestPending label in the case things change and we need to recover it.

@fgalan fgalan closed this as completed Feb 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants