Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upREST API: Implement /reports/customers endpoint #916
Comments
timmyc
added
the
REST API
label
Nov 23, 2018
Nov 24, 2018
This was referenced
timmyc
added this to Project Backlog 🔙
in Isotope
Nov 26, 2018
This comment has been minimized.
This comment has been minimized.
Noting that during our planning session today we discussed that support for customers registration filter does not exist in the swagger hub implementation. |
timmyc
moved this from wc-admin Backlog 🔙
to 💪Sprint 9 Backlog
in Isotope
Dec 7, 2018
jeffstieler
self-assigned this
Dec 10, 2018
This comment has been minimized.
This comment has been minimized.
@timmyc - question regarding the initial lookup table backfill.. It seems obvious that we want to backfill the customer lookup table with existing (registered) customers.. but what about "existing" guest customers? Should we pull all the unique email addresses from guest orders and backfill them? |
This comment has been minimized.
This comment has been minimized.
Wonder if we can hook some logic into the existing back-fill operation of the orders lookup table to also preform the requisite tasks regarding customers. @peterfabian any thoughts on that approach? |
This comment has been minimized.
This comment has been minimized.
More questions:
|
This comment has been minimized.
This comment has been minimized.
Nope sounds reasonable to me.
I believe we have standardized on
I would imagine we would want to search against both fields when this argument is sent along
I think adding username to the lookup table makes sense, or not supporting it since we have the name option.
The schema returned by the endpoint should describe the shape/attributes of the return values from the API - so likely won't fully match the lookup table. |
This comment has been minimized.
This comment has been minimized.
Ok so are we matching on either the first or last name, or a concatenation of the two?
I'll add it.
It should at least contain the values displayed in the report table, right? |
This comment has been minimized.
This comment has been minimized.
To me it seems like just basing this off the last name might simplify things, and be much more likely to happen then searching for first name. @LevinMedia ?
It should really be a representation of the shape/types of values returned by the API. Here are some docs around what it should represent. |
This comment has been minimized.
This comment has been minimized.
A concatenation of the two seems like it would be ideal. @timmyc I could see most people starting to search by last name, but I think we want the first as well, as there will inevitably be folks with the same last name. |
timmyc commentedNov 23, 2018
p2: p7bje6-16h-p2
swagger: https://app.swaggerhub.com/apis/peterfabian/wc-v3-api/1.0.0#/default/get_reports_customers
Currently the
/reports/customers
endpoint has yet to be fully implemented. It appears the new endpoint will require another reporting table to be built, so for this issue we will need the required table to be built, along with the endpoint logic.