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

Copy observations across programs #534

Open
cquiroz opened this issue Jun 22, 2023 · 3 comments
Open

Copy observations across programs #534

cquiroz opened this issue Jun 22, 2023 · 3 comments

Comments

@cquiroz
Copy link
Contributor

cquiroz commented Jun 22, 2023

It seems that is not currently supported though you can clone observations inside within a program

@swalker2m
Copy link
Contributor

Implies copying referenced targets and finder charts etc. across programs as well. Is there a Shortcut request for this?

@cquiroz
Copy link
Contributor Author

cquiroz commented Jun 22, 2023

@toddburnside
Copy link
Contributor

For the targets, finder charts, etc., we'd probably also want to deal with duplication issues. For example, if a program has 2 observations that share a target, and we copied them one after the other into another program, we'd still want just one target in the second program. There are other situations, of course, such as a user importing the same list of targets and importing them into 2 programs, then copying observations between them.

For attachments, we'd need a way to detect duplicates. AWS returns a hash of some sort as the result of uploading a file, but I think that might depend on the PartSize used for the upload. We could also calculate a hash with fs2 as we upload. Anyway, if we stored a hash in the DB, we could use that to check for duplicates. We'd also have to deal with name collisions for copied attachments. The AWS copyObject method would allow us to make copies of the attachment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants