Skip to content

issue 1358 remove DataService - #1359

Merged
sosnovsky merged 6 commits into
masterfrom
issue-1358-remove-data-service
Feb 8, 2022
Merged

issue 1358 remove DataService#1359
sosnovsky merged 6 commits into
masterfrom
issue-1358-remove-data-service

Conversation

@tomholub

@tomholub tomholub commented Feb 2, 2022

Copy link
Copy Markdown
Collaborator

This PR removed DataService as it duplicated functionality.

close #1358


Tests (delete all except exactly one):

  • Does not need tests (refactor only, docs or internal changes)

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

Comment thread FlowCrypt/Controllers/Setup/SetupGenerateKeyViewController.swift
Comment thread FlowCrypt/Controllers/Setup/SetupGenerateKeyViewController.swift Outdated
Comment thread FlowCrypt/Controllers/Setup/SetupGenerateKeyViewController.swift Outdated
Comment thread FlowCrypt/Controllers/Setup/SetupInitialViewController.swift Outdated
Comment thread FlowCrypt/Functionality/Migration/DBMigrationService.swift
Comment on lines +10 to +11
func replace(email: String, pubkey: String, idToken: String?) async throws -> String
func update(email: String, pubkey: String) async throws -> String

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Replace means change one pubkey to another (needs Id token). Update means upload an updated version of the same public key (same primary fingerprint) - no id token needed.

@tomholub

tomholub commented Feb 3, 2022

Copy link
Copy Markdown
Collaborator Author

@ivan-ushakov later please help me to finish this PR to compile and pass tests. Above comments will be for another issue later, just making this one functional. When ready, please request review from Roma. Thanks!

(I mean later on, when you're done with whatever you're working on so you don't need to jump between tasks)

@ivan-ushakov
ivan-ushakov marked this pull request as ready for review February 5, 2022 18:14

@sosnovsky sosnovsky left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good with AppContextWithUser integration, it requires less parameters to be passed 👍

Comment thread FlowCrypt/Controllers/Setup/SetupInitialViewController.swift Outdated
Comment thread FlowCrypt/Controllers/Settings/Settings List/SettingsViewController.swift Outdated
Comment thread FlowCrypt/Controllers/Setup/SetupEKMKeyViewController.swift Outdated

@sosnovsky sosnovsky left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

All good now 👍

@sosnovsky
sosnovsky enabled auto-merge (squash) February 8, 2022 15:11
@sosnovsky
sosnovsky merged commit 8a27247 into master Feb 8, 2022
@sosnovsky
sosnovsky deleted the issue-1358-remove-data-service branch February 8, 2022 16:00
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.

remove DataService

3 participants