-
Notifications
You must be signed in to change notification settings - Fork 7
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
Don't include "Bulk" in operations names for resource-level actions #147
Comments
Related slack thread: https://liveramp.slack.com/archives/CPBAEKS9X/p1608346245035100 Here's what I think is the cause:
A similar piece of logic exists in |
After some more digging, it seems to be that "bulk" and "resource-level" are currently equivalent to each other. I see no references to the value of the I'd like to explicitly propose for this issue that resource-level only alter the endpoint (as it does today) but does not have any mention of "bulk" in the resource name or documentation. Now seems the time to change this as there are only two uses of "resource-level" right now and both are still in draft phases. |
Hi @rupertchen , I chatted about this with the rest of the API team. Our proposed solution is as follows:
Sound good? I hope to have a PR up next week. I'll coordinate with the taxo and field-mapper folks about updating their use of |
I am interested in having that third bullet, so I'm happy to wait for that to be available. I don't understand why If you're still fielding names, what about: |
We happened to read
@forestgagnon @cjea , what do you guys think? |
I don't know if my interpretation will be what others have. I came to mine "in reverse" by looking at what was generated and what we used and trying to understand what reslang might have meant. Reviewing this now I had some additional thoughts (some of which feel contradictory):
Ultimately, I think I'll be fine with whatever you all decide to go with. |
Thanks, @rupertchen . Seems like the API team needs to spend a little more time thinking about the best solution. Since it's not the quick fix I had hoped for and the priority is rather low I'm not exactly sure when we'll get to this. Soon, I hope, but I'd like to be realistic and not make any promises. |
@sirishalal I marked this as low priority, but that's because we can tolerate noise in the documentation for internal docs. If these docs are to be exposed externally, the instances of "Bulk" being added in nonsensical cases would be more problematic. |
Description
Do not automatically include "Bulk" in the operation name for resource-leve actions. I believe this is the line causing that to happen.
Why it's valuable
Honestly, I might be fighting against the spirit of the feature here, but it seems like we shouldn't assume that all resource-level actions are necessarily bulk actions. A bit of a funky "real-world" example is this action which is meant to create a single resource using a property (LIR ID) that we don't want to live on the resource itself, but need to use to create the initial resource for the time being.
If I am fighting the spirit of the language and there's another approach more in line with the spirit of reslang and the API standards, I'm open to that.
The text was updated successfully, but these errors were encountered: