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

Created summary cell #266

Closed
wants to merge 1 commit into from
Closed

Created summary cell #266

wants to merge 1 commit into from

Conversation

lorenzoPrimi
Copy link
Contributor

No description provided.

@bassosimone
Copy link
Contributor

👀

Copy link
Contributor

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

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

I've started reading the PR and then stumbled on something really bad to the point where it is not only unexpected but also greatly dangerous. The build fails but that is hidden by xcpretty.

I have already highlighted places where some improvement is needed (don't worry about conflicts as we're going to handle them in an easy way and I doubt they'll be a problem in this case).

Please, either apply the required changes to repair xcpretty or drop it. I don't care abut pretty printing the build as much as I care about having the build fail when it should.

(This is actually a great opportunity to fix this issue, since we know that the build is failing and we are clearly in a case in which xcpretty is making it succeed nonetheless.)

So, to summarise:

  1. please either remove xcpretty or make it work (I don't care about xcpretty FWIW)

  2. please apply the changes I've mentioned above, and hopefully they will be enough to repair the build

  3. I'd like to take a second look at how the code changed

Thanks!

[super setSelected:selected animated:animated];

// Configure the view for the selected state
}
Copy link
Contributor

Choose a reason for hiding this comment

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

The two methods above seem to call a superclass; how about we just omit them?

@@ -1,12 +1,14 @@
#import "TestSummaryTableViewController.h"
#import "TestSummaryViewController.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this name change is correct?

#import "ReachabilityManager.h"
#import "Tests.h"
#import "UploadFooterViewController.h"
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this file is added in another PR, no?

@@ -16,16 +18,17 @@ - (void)viewDidLoad {
[self.navigationController.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
self.tableView.tableFooterView = [UIView new];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(resultUpdated:) name:@"resultUpdated" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reloadMeasurements) name:@"uploadFinished" object:nil];
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess emitting this notification is fine, even though we've not implemented the upload of measurements yet.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yet, I'd remove this code and reintroduce it later.

else {
self.tableFooterConstraint.constant = 0;
[self.tableView setNeedsUpdateConstraints];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Also this block of code does not belong here. Please remove.

UploadFooterViewController *vc = (UploadFooterViewController * )segue.destinationViewController;
[vc setResult:result];
[vc setUpload_all:true];
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Also this block of code does not belong here; please remove.

@lorenzoPrimi
Copy link
Contributor Author

This can't be merged as it will break master. Storyboard conflict. Also is strictly connect with table rows where I added the upload icon.
Should be reviewed inside #258

@bassosimone
Copy link
Contributor

Please, reopen and fix the build. We can cherry pick the commit somewhere else. My job is hopeless if I cannot trust the build system at Travis to do its job.

@bassosimone bassosimone reopened this Apr 19, 2019
@bassosimone
Copy link
Contributor

I want to do some more on my own on this PR, even if we eventually don't merge it. I think at this point it's important that I feel the pain of the storyboard myself.

@bassosimone
Copy link
Contributor

Pain was felt. We can now close this PR.

@bassosimone bassosimone deleted the summary_cell_class branch April 20, 2019 10:22
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.

2 participants