This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
General update #43
Merged
+12
−13
Merged
General update #43
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
84cbdfc
Replace request.is_xhr
SolidifiedRay 5bf8e3d
Fix docstring
SolidifiedRay 2247126
Replace StringIO with ByteIO
SolidifiedRay 964bed9
Edit in-toto version
SolidifiedRay 2973500
Edit installation requirements
SolidifiedRay 4203951
pin version of other requirements
SolidifiedRay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Flask | ||
Flask-PyMongo | ||
Flask-WTF | ||
-e git://github.com/in-toto/[email protected]#egg=in-totov0.2.3.dev5 | ||
Flask==1.1.2 | ||
Flask-PyMongo==2.3.0 | ||
Flask-WTF==0.14.3 | ||
in-toto==0.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ <h1>Create in-toto layout | |
<p>You will be asked to run a couple of in-toto commands while walking through this website, so make sure to have in-toto installed:</p> | ||
|
||
<pre class="code"> | ||
pip install -e git+https://github.com/in-toto/[email protected]#egg=in-totov0.2.3.dev5 | ||
pip install in-toto | ||
</pre> | ||
|
||
<hr> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
IIUC you are re-implementing the check that the deprecated
request.is_xhr
used to perform, right?Did you have a chance to check if the jquery ajax call we use still sets that header, so that our
ajax_flash_messages
hook still works?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 a ton for the review @lukpueh !!
I checked the
ajax_flash_messages
hook and unfortunately something is not right.For example, when I upload the functionary's public key in the functionaries page, the flash messages show up only after I manually refresh the page. When I try to remove the functionary that already has a pubkey, I also have to refresh the page to see the change and the flash message. I am not sure if there is something wrong with the ajax call or the
ajax_flash_messages
hook, but I will try to find up why this happened.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.
As a follow-up, I will work on rule generation first, which seems to have a higher priority than this problem.
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.
I found
ajax_flash_messages
working again.I check the jquery ajax call with the browser's network console, and it does include the
X-Requested-With
header with the valueXMLHttpRequest
. So I believe there is no problem with the code here. I doubt that it failed previously is because my Virtual Machine didn't run the WSGI server correctly.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.
I'll merge then. Thanks for the updates!