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

Simple Data Grapher: Integration + Research Note + Tests #6113

Merged
merged 48 commits into from
Aug 20, 2019

Conversation

IshaGupta18
Copy link
Collaborator

This is the PR I would be working on and is a combination of #6102 #6104 #5993 with major bug fixes.
@jywarren @gauravano @sagarpreet-chadha please review! Thanks a lot!

@IshaGupta18
Copy link
Collaborator Author

@jywarren moving from #6104

@jywarren
Copy link
Member

Hmm, error is:

ERROR["test_viewing_the_settings_page", #<Minitest::Reporters::Suite:0x00007fd339b783b0 @name="SettingsTest">, 98.75577035500004]
 test_viewing_the_settings_page#SettingsTest (98.76s)
ActionView::Template::Error:         ActionView::Template::Error: undefined method `id' for nil:NilClass
            app/views/users/settings.html.erb:10:in `_app_views_users_settings_html_erb__4235966138012236490_70272530884460'

@jywarren
Copy link
Member

Have you modified that file at all? Could this possibly be something related to @namangupta01's Notifications work? Thanks!

@IshaGupta18
Copy link
Collaborator Author

IshaGupta18 commented Aug 19, 2019 via email

@IshaGupta18
Copy link
Collaborator Author

IshaGupta18 commented Aug 19, 2019 via email

@IshaGupta18
Copy link
Collaborator Author

@jywarren can you please restart Travis once?

@IshaGupta18 IshaGupta18 reopened this Aug 19, 2019
@IshaGupta18
Copy link
Collaborator Author

@jywarren all tests pass! 🎉

@jywarren
Copy link
Member

OK, let's try to track this testing thing in a new issue... any links to Travis lines and builds that demonstrate it would be great. And there we can hear from other people on the issue as well.

@IshaGupta18
Copy link
Collaborator Author

IshaGupta18 commented Aug 19, 2019 via email

config/routes.rb Outdated
post 'graph/object' => 'csvfiles#setter'
post 'graph/note/graphobject' => 'csvfiles#add_graphobject'
get 'graph/prev_file' => 'csvfiles#prev_files'
get 'simple-data-grapher/data/:id' => 'csvfiles#user_files'
Copy link
Member

Choose a reason for hiding this comment

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

Oh, was there a reason you didn't change this one too? Just checking!

Copy link
Member

@jywarren jywarren left a comment

Choose a reason for hiding this comment

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

This looks good. @IshaGupta18 what plan do you have for some system tests for this code? That would cover a LOT of the Ruby/JS integration that needs to work for this PR to succeed. What do you think? Thanks!

One question above. And if you can get a system test running in here too, I'd be really happy with merging - and that would link the full-stack system test with the entirety of this code!

@IshaGupta18
Copy link
Collaborator Author

IshaGupta18 commented Aug 19, 2019 via email

@IshaGupta18
Copy link
Collaborator Author

IshaGupta18 commented Aug 19, 2019 via email

@jywarren
Copy link
Member

jywarren commented Aug 19, 2019 via email

@IshaGupta18
Copy link
Collaborator Author

Okay, sure, I'll change the routes!

@IshaGupta18
Copy link
Collaborator Author

Could you please suggest what kind of a system test and how many are needed for the integration? I am not very sure on how to proceed with it? @cesswairimu @jywarren please guide me here!

@IshaGupta18
Copy link
Collaborator Author

Okay so I looked it up, and I have done a TON of System or UI testing in simple-data-grapher
https://github.com/publiclab/simple-data-grapher/pull/75/files#diff-ebd069d2a1e90870c1e5d97b6394f438

Do you think this will suffice, @jywarren ?

@IshaGupta18
Copy link
Collaborator Author

If it does, are we good for merge?

@IshaGupta18 IshaGupta18 reopened this Aug 19, 2019
@jywarren
Copy link
Member

Great it worked!

image

@jywarren jywarren merged commit 6b9d93b into publiclab:master Aug 20, 2019
@jywarren
Copy link
Member

Congratulations!!! Let's test it in stable and confirm here!

@cesswairimu
Copy link
Collaborator

Great job @IshaGupta18 🎉 🎉

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

Successfully merging this pull request may close these issues.

5 participants