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

Linting Fixups #53

Merged
merged 23 commits into from
Oct 13, 2020
Merged

Linting Fixups #53

merged 23 commits into from
Oct 13, 2020

Conversation

MightyAx
Copy link
Contributor

@MightyAx MightyAx commented Sep 25, 2020

All our UI linting fixups in one place.
I only changed components I understood, so dependencies like the clipboard were left alone.

The quicker we review this the better, because this would be a nightmare of a merge conflict.
This one will need some testing because of deprecated RxJS functionality.

Deployed to Dev

@MightyAx MightyAx requested a review from a team September 25, 2020 11:05
@MightyAx MightyAx self-assigned this Sep 25, 2020
@MightyAx MightyAx marked this pull request as ready for review September 25, 2020 11:08
Copy link
Contributor

@aaclan-ebi aaclan-ebi left a comment

Choose a reason for hiding this comment

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

This is soooo noice!

@MightyAx MightyAx requested review from aaclan-ebi and a team September 25, 2020 16:10
@MightyAx
Copy link
Contributor Author

MightyAx commented Sep 25, 2020

For Investigation:

  • New delay what querying My Projects, All Projects, All Submissions.

Copy link
Contributor

@rolando-ebi rolando-ebi left a comment

Choose a reason for hiding this comment

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

Nice, LGTM

If we want all rxjs operators used to exist within pipe()'s, there's a TSLint plugin that can ensure this: https://github.com/ReactiveX/rxjs-tslint

client/src/app/my-projects/my-projects.component.ts Outdated Show resolved Hide resolved
client/src/app/aai/aai.service.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@aaclan-ebi aaclan-ebi left a comment

Choose a reason for hiding this comment

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

Wow this is huge PR. Is this already deployed in dev? we should do manual tests and merge soon.

…ame changes. Rather than regenerating everytime anything about the first corresponding contributor changes.
# Conflicts:
#	client/src/app/aai/aai.service.ts
#	client/src/app/project-form/project-form.component.ts
#	client/src/app/project-registration/project-registration-form/project-registration-form.component.ts
#	client/src/app/shared/services/ingest.service.ts
#	client/src/app/template-questionnaire/template-questionnaire.data.spec.ts
#	client/src/app/template-questionnaire/template-questionnaire.data.ts
@ebi-ait ebi-ait deleted a comment from aaclan-ebi Oct 6, 2020
@MightyAx MightyAx requested a review from a team October 6, 2020 16:23
@@ -161,43 +169,32 @@ export class IngestService {
return this.http.get(url);
}

public getAs<T>(url): Observable<T> {
return this.http.get(url).pipe(map(data => data as T));
Copy link
Contributor Author

@MightyAx MightyAx Oct 7, 2020

Choose a reason for hiding this comment

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

Could change this to:

return this.http.get<T>(url);

@aaclan-ebi
Copy link
Contributor

The submission details page is not loading.

@MightyAx
Copy link
Contributor Author

MightyAx commented Oct 7, 2020

The submission details page is not loading.

Can you post a link @aaclan-ebi? This submission is working for me.
https://dev.contribute.data.humancellatlas.org/submissions/detail?uuid=101b61ed-a7c6-4c76-859b-ad8fcdcdafe4&project=ae6029a8-7446-45fa-ace3-794409cc3656

@aaclan-ebi
Copy link
Contributor

aaclan-ebi commented Oct 7, 2020

The submission details page is not loading.

Can you post a link @aaclan-ebi? This submission is working for me.
https://dev.contribute.data.humancellatlas.org/submissions/detail?uuid=101b61ed-a7c6-4c76-859b-ad8fcdcdafe4&project=ae6029a8-7446-45fa-ace3-794409cc3656

Ah that one's loading when i cleared my cache.

However, I still found a submission which is not loading:
https://dev.contribute.data.humancellatlas.org/submissions/detail?uuid=92cb09ba-d7a4-4c1f-a6cb-56e1c0464357

I also noticed that it would take me to login page first for sometime before it redirects me to the submission details page.

@MightyAx
Copy link
Contributor Author

MightyAx commented Oct 7, 2020

Thanks @aaclan-ebi:
I see these errors in the Javascript console that I imagine are the culprits, I'm investigating

[Error] ERROR – TypeError: undefined is not an object (evaluating 'e._links')
TypeError: undefined is not an object (evaluating 'e._links')(anonymous function)

[Error] ERROR – TypeError: null is not an object (evaluating 'this.submissionEnvelopeId.length')
TypeError: null is not an object (evaluating 'this.submissionEnvelopeId.length')
	dr (main.4cfd5975e411d38be33b.js:1:3015587)
	handleError (main.4cfd5975e411d38be33b.js:1:3015758)
	next (main.4cfd5975e411d38be33b.js:1:3107854)

@MightyAx
Copy link
Contributor Author

MightyAx commented Oct 7, 2020

However, I still found a submission which is not loading:
https://dev.contribute.data.humancellatlas.org/submissions/detail?uuid=92cb09ba-d7a4-4c1f-a6cb-56e1c0464357

Can confirm fixed on dev

@aaclan-ebi
Copy link
Contributor

However, I still found a submission which is not loading:
https://dev.contribute.data.humancellatlas.org/submissions/detail?uuid=92cb09ba-d7a4-4c1f-a6cb-56e1c0464357

Can confirm fixed on dev

Yes, it's loading now! thanks for fixing it!

I also noticed that it would take me to login page first for sometime before it redirects me to the submission details page.

Did you get a chance to replicate this?

…st wait for real response from aai, in the case of a hard refresh killing the cachedUser.

Comments to clarify use of userSubject subscriptions
@MightyAx MightyAx requested a review from aaclan-ebi October 12, 2020 09:22
Copy link
Contributor

@aaclan-ebi aaclan-ebi left a comment

Choose a reason for hiding this comment

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

Thanks for spending so much effort on cleaning up our UI code!

I've reviewed the changes. It's a big change, I tried to navigate around in dev, it seems to work the same as before. If we find any issues, let's just fix it as we go. Basic submission flow seems to work fine. Let's merge this soon :)

@MightyAx MightyAx merged commit 0e831ba into master Oct 13, 2020
@MightyAx MightyAx deleted the cleanup/lint-and-tests branch October 13, 2020 14:12
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.

3 participants