Skip to content

Transform case statement feedback #243

@imathews

Description

@imathews

Originally posted by Josh Grab in the PHS Users slack:

Hi Redivis folks

I have some Redivis feature requests for additional functionality and labeling. (Nothing urgent or deal-breakers for using Redivis, just some nice-to-haves.) All refer to parts of the single screenshot included here, from the "Create variables” block within a Redivis transform.

Hovering over the three vertical dots on the right of a code block shows various options for what to do. The small green oval gives (among other options) the option to copy the entire block (large green outline). The small yellow circles (three vertical dots not shown, since I couldn’t make those appear at same time as the dots in the small red circle) give an option to copy the corresponding single line, highlighted in yellow. However, the options available in the small red circle do NOT offer an option to copy the gray block fully contained in the red rectangle.

In order to create the very similar (not outlined) gray block below the red-outlined gray block, I had to click on the “+” next to the first “Set to” field, then copy each of the yellow conditions separately from the top gray block to the bottom gray block, then delete the default empty row it supplied. The new block also defaults to (AND) rather than (OR). I don't have a problem with (AND) as the default, but if I'm making a sequence of "Else if" blocks that all use (OR), copy functionality would save me from having to switch every block I add from (AND) to (OR).

Request 1: What I would like to be able to do is copy the entire red rectangle and paste it below (because in this case, I’m going to need 8 nearly identical copies of the top gray block, not just two, and in other situations, I may have more than two lines in each block).

My guess is that this ability isn’t offered in that little red circle because there is nowhere to paste the copied gray rectangle if you haven’t already clicked on the “+” to add a new block, and clicking on the “+” generates a default gray block. I think the appropriate place to handle this is in the section with the “+ x” (circled in blue), where maybe a third option could be added that allows insertion of a new block that is a copied block instead of just the “+” option for insertion of a default empty block.

Request 2, for the same screenshot: It would be nice to be able to re-order the gray blocks by moving up or down. For instance, if I build a sequence of conditions such as: If [a] then do [A] /Else if [b] then do [B]/Else if [c] then do [C], and then realize the c/C step should have come before b/B, currently I’d have to delete the c/C step at the bottom and use the “+” before the b/B step and completely recreate the c/C step there.

Request 3: Finally, I have a labeling request for the “ x “ option (in blue oval) for deleting an “Else if” block. It doesn’t seem obvious to me exactly what will happen if I click on the “ x “ in the blue oval: Will it delete the gray block above, or the gray block below? If the answer is below, there is still ambiguity: If there’s more than one “Else if” condition below, will it delete everything below the “ x “, or just the one immediately below the “ x “?

(If my color choices for highlighting need clarification, let me know, e.g. not sure if someone red-green colorblind could distinguish the four colors I used.) Happy to clarify if anything isn't clear. Thanks!

Screenshot_Redivis_Copy_Issue_2024-07-27

Metadata

Metadata

Assignees

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