-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Improve [Matrix] badge generation #2527
Merged
paulmelnikow
merged 30 commits into
badges:master
from
babolivier:babolivier/fix-matrix
Dec 20, 2018
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
a20f367
Resolve homeservers' names through DNS if possible
babolivier d3f4110
Add a connectivity check before trying to register
babolivier d02e309
Comply with the overall coding style
babolivier ffc3282
Bonus: Use room aliases (with correct syntax) instead of room IDs
babolivier 8453c2f
Bonus: Store access tokens in memory to avoid countless registrations
babolivier a72bb2d
Update doc
babolivier 55b33b0
Fix error message
babolivier a7468fd
Add new test for alias + improve existing tests
babolivier 48cff03
Use optional URL parameter to determine where to reach homeservers ra…
babolivier 0b6a19b
Get branch up to date with the latest master revision
babolivier e17fd8e
Remove in-memory cache for access tokens
babolivier 3d9a5bb
Add test case for homeserver fqdn
babolivier 3ae25b6
Rename room readibility test with a more explicit name
babolivier 1c1fccd
Fix unknown request test
babolivier ea1433e
Get branch up to date with the latest master revision
babolivier 3ac4a25
Use namedParams instead of exampleUrl
babolivier b6c9938
Get branch up to date with the latest master revision
babolivier d655fa1
Add serverFqdnOptional to example (as we run into errors otherwise)
babolivier 75b799d
Make error thrown when parsing the alias more explicit
babolivier f929910
Remove mention of 'room host'
babolivier fad3add
Incorporate upstream's test suite improvements
babolivier 2800387
Fix handling of port in alias
babolivier 8bb5ebe
Add tests for invalid alias and port in alias
babolivier 3ec0c77
Update comment
babolivier 2a94b15
URL-encode room IDs and aliases
babolivier 410015e
Move server FQDN to query parameters
babolivier 2d4ec57
Update doc and examples with recent changes
babolivier 56db2a9
Fix typo in doc
babolivier fcdbd8e
Validate query params + use snake case
paulmelnikow 61f7194
Merge branch 'master' into babolivier/fix-matrix
paulmelnikow 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
Oops, something went wrong.
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.
You've got a solid suite of tests already 👏, but I noticed there's no tests for these latter two cases (invalid alias and when room alias includes a port). Would it be feasible to add tests for these?
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.
Sure.
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.
Done in 8bb5ebe (which was apparently necessary as I hadn't implemented the latter case correctly 😛 )