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

upload json file #68

Merged
merged 5 commits into from
Jul 17, 2018
Merged

upload json file #68

merged 5 commits into from
Jul 17, 2018

Conversation

rizalfr
Copy link
Collaborator

@rizalfr rizalfr commented May 23, 2018

No description provided.

@rizalfr rizalfr force-pushed the rizalfr/f_upload_json branch from 865a611 to cf5edfb Compare May 23, 2018 07:42
Copy link
Collaborator

@Amadeea Amadeea left a comment

Choose a reason for hiding this comment

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

UI:
Add title for 'Main's Configuration'
'Upload JSON' title should be change with 'Team's Configuration'

BUG:
upload_file function called twice which one belongs to upload py and another belongs to upload json. need to differentiate the forms' names between upload py and upload json

@rizalfr rizalfr force-pushed the rizalfr/f_upload_json branch from cf5edfb to 0049c7b Compare June 6, 2018 10:21
var form = $('#upload_file_form')[0];
var form_data = new FormData(form);
var form_data = new FormData($('.upload_file_form_test_file')[0]);
$.ajax({
Copy link
Collaborator

Choose a reason for hiding this comment

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

how about put this ajax to a function? and the function receive form data parameter. for example
function call_upload_file(form_data){$.ajax({...})}
and inside submit handler all you need to do is call that function with passing form data parameter

@rizalfr rizalfr force-pushed the rizalfr/f_upload_json branch from 975746c to 23ae944 Compare June 6, 2018 11:45
@pancaprima pancaprima merged commit a89a2a7 into develop Jul 17, 2018
@pancaprima pancaprima deleted the rizalfr/f_upload_json branch July 17, 2018 06:13
pancaprima pushed a commit that referenced this pull request Aug 21, 2018
* enabling json uploading

* fix modal ui in upload json

* enabling upload on json also

* modify ui a bit and avoid duplicated message

* unify the function
pancaprima added a commit that referenced this pull request Aug 21, 2018
* Prima Update locust base version to 0.8.1 (#70)

* find locustfile in the root directory

* Add ability to write out csv file data as part of command line run

* Update minimum version of gevent to fix locustio#598

* CSV flag, review comments

* Modify gevent wsgi and libev dependencies

* Sort all python imports

* Sort setup.py imports

* Standardize utf8 file coding declarations

* Bump version to 0.8a3 for another pre-release candidate

* Changed from deprecated method name

* Added test_suite argument to setup.py’s setup() method call

Not specifying the test_suite argument (using the default one) resulted in all tests being run multiple times (on Python 3.5). I haven’t looked in to why, since specifying “locust.test” should be correct, and fixes it.

* Suppress a warning that appears when running the tests on Python 3, that can cause tests (that depends on output to stderr) to fail.

* Apply gevent monkey patching before we import requests, to avoid infinite recursion error when doing SSL requests. Should fix locustio#655.

* Also patch threading when applying gevent monkey patch. Should fix locustio#569.

* Bumped version to 0.8a4

* Improved changelog

* Update main.py

Code comment and slightly more descriptive variable name

* More info about 0.8 to the Changelog

* Added some random examples that maybe could be useful to someone

* Bumped version to 0.8

* Upgrade pyzmq to latest stable version, and changed so that we do not pin the version (will make it easier to install Locust on Windows)

* Better installation instructions for Windows

* Bumped version to 0.8.1

* Erlangga Add team_configuration property (#72)

* add get team configuration

* change read json path

* Rizal upload json file for team configuration (#68)

* enabling json uploading

* fix modal ui in upload json

* enabling upload on json also

* modify ui a bit and avoid duplicated message

* unify the function

* bug fix team configuration function (#88)

* change team_configuration function

* update configuration works
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