Skip to content

Add labkey.moveRows#100

Merged
cnathe merged 6 commits intodevelopfrom
fb_moveRowsRlabkeyAPI
Jan 9, 2024
Merged

Add labkey.moveRows#100
cnathe merged 6 commits intodevelopfrom
fb_moveRowsRlabkeyAPI

Conversation

@cnathe
Copy link
Contributor

@cnathe cnathe commented Jan 3, 2024

Rationale

Related PR added a query-moveRows.api to the QueryController so that we could consolidate the various move entities actions to a single action. This PR adds labkey.moveRows() to the Rlabkey package.

Related Pull Requests

Changes

  • factor out jsonEncodeRowsAndParams to be used in labkey.deleteRows.R, labkey.importRows.R, labkey.insertRows.R, and labkey.updateRows.R
  • add new labkey.moveRows.R and related man doc page

p3 <- paste(p3, collapse=",")
pbody <- paste(substr(p1, 1, nchar(p1) - 1),', \"rows\":[',p3,"] }",sep="")
return(pbody)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice consolidation of common code!

@cnathe cnathe merged commit e8ec55f into develop Jan 9, 2024
@cnathe cnathe deleted the fb_moveRowsRlabkeyAPI branch January 9, 2024 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Moving entities between projects - API dev - labkey-api-r

2 participants