-
Notifications
You must be signed in to change notification settings - Fork 0
Ensure all fields are sent #10
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
Conversation
feat(models): create models
add ci and coverage report
Ft authentication
feat(request): send request for monitoring
Creating checks
- Move login script to a separate file [Delivers #155514460]
Center login button
- ensure the save and run buttons are clear and self descriptive [Delivers #155514841]
application/static/js/dashboard.js
Outdated
|
|
||
| if(data.length > 0) { | ||
| $.ajax({ | ||
| url: 'http://127.0.0.1:5000/dashboard', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way we can ensure the url is not hardcoded? For example pushing this code to another server would lead to failure.
Think of getting the host using JQuery
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Ashaba. I have changed this to url: '/dashboard'. This way, Ajax will automatically append /dashboard to whatever the current root url is.
7285d0c to
c272aee
Compare
Pull Request Test Coverage Report for Build #54
💛 - Coveralls |
application/static/js/dashboard.js
Outdated
| data: JSON.stringify(data), | ||
| contentType: "application/json; charset=utf-8", | ||
| success: function (response) { | ||
| console.log(response); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should logs be allowed in production code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, they shouldn't. I added this line for debug purposes and forgot to remove it. I have removed it now. I suggest we add a story to automate checking of such using git hooks. CC @Ashaba
#155514841 Make the dashboard buttons clear
c272aee to
f1c7052
Compare
chore(readme): add readme content
|
Please rebase with develop. |
[Delivers #155514650]
f1c7052 to
31b7375
Compare
|
I have noticed that one can send multiple headers with the same key and they are allowed. Is that the accepted behaviour? |
Ashaba
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add tests.
|
@Ashaba why have you closed this? |
|
Please create a new PR |
What does this PR do?
Ensures all fields from the requests form are sent to the backend
Tasks to be completed
How can this be tested
views.py. Run the server.What is the relevant pivotal tracker story?
Story #155514650