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

Service changes for Leases in ES #1930

Merged
merged 3 commits into from Jun 16, 2016
Merged

Service changes for Leases in ES #1930

merged 3 commits into from Jun 16, 2016

Conversation

kenoir
Copy link
Contributor

@kenoir kenoir commented Jun 15, 2016

No description provided.

@kenoir kenoir changed the title Service changes for Leases in ES [WIP] Service changes for Leases in ES Jun 15, 2016
def put(lease: MediaLease) = Scanamo.put(client)(tableName)(lease.copy(id=uuid))
def delete(id: String) = Scanamo.delete(client)(tableName)(key(id))
def put(lease: MediaLease) = Future { Scanamo.put[MediaLease](client)(tableName)(lease.copy(id=uuid)) }
def delete(id: String) = Future { Scanamo.delete(client)(tableName)(key(id)) }
Copy link
Contributor

Choose a reason for hiding this comment

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

I added these so I could use the results as promises (i.e. chain subsequent actions), is this the right way to do it?

I noticed the other methods in here returned mappable objects but these didn't so I wasn't sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think Scanamo now supports async requests, but this is ok for now.

@NickPapacostas
Copy link
Contributor

I think some of the optimised stuff is getting overridden here.

Otherwise I just asked had a few conceptual comments, no blockers

@kenoir kenoir changed the title [WIP] Service changes for Leases in ES Service changes for Leases in ES Jun 15, 2016
@NickPapacostas
Copy link
Contributor

👍

@kenoir kenoir merged commit 0a7ef34 into master Jun 16, 2016
@akash1810 akash1810 deleted the leases-es-backend branch April 10, 2017 12:18
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

Successfully merging this pull request may close these issues.

None yet

2 participants