markiannucci / chromeuserwebsearchextension Goto Github PK
View Code? Open in Web Editor NEWChrome UserWeb Search Extension
License: MIT License
Chrome UserWeb Search Extension
License: MIT License
Is your feature request related to a problem? Please describe.
Sometimes we get nova notes that say "you're not affected by this Nova Note if you have already installed a SU". Therefore I'd like a way to type uw su and have it return a list of RAs that have the SU I'm interested in.
Describe the solution you'd like
It looks like sending sherlock this link will do the trick:
https://sherlock.epic.com/default.aspx?view=ra/search#sus=
Update the userweb search in Chrome to do that :)
Is your feature request related to a problem? Please describe.
Nova note links aren't copyable from my browser, and I have to search for them, and then click something else to get them to display. Can you get me straight there like Sherlock?
Describe the solution you'd like
uw nova #### takes me directly to the nova note.
uw nova words searches for words
Describe the solution you'd like
uw cc should produce this link:
https://training.epic.com/CourseCatalog#/?ViewID=course-catalog&Query=
Is your feature request related to a problem? Please describe.
Right now I can type out Sherlock and search slgs (sherlocks), however, most of us in the Epic community know them as SLGs.
Describe the solution you'd like
Make typing "uw slg" do the same as "uw sherlock"
Describe the bug
I noticed we're using a lot of the same values for the first part of the URL strings. Refactor that to use constants so the code is less brittle.
Is your feature request related to a problem? Please describe.
Today I wanted to go directly to a reportable issue because I had the Q-### for it. Unfortunately, I wasn't able to do that.
Describe the solution you'd like
Have reportable issue search functionality work like SLG functionality.
Describe alternatives you've considered
Click stuff on the web :(
Additional context
https://sherlock.epic.com/default.aspx?view=zqn/search#cid=932&txt=5084374&es=1 <--- search string
https://sherlock.epic.com/default.aspx?view=zqn/search#cid=932&txt=5084374&es=1&id=5084374 <--- display view
Describe the bug
If I attempt to search nova, I do not get results anymore
To Reproduce
uw nova active etl
Expected behavior
I get results.
Describe the bug
When I punch in uw term
galaxy search does not happen -- you get taken to an empty galaxy page
To Reproduce
Type uw term
first thing in the morning. There may not be much we can do to avoid this issue.
Expected behavior
Get taken to your search results
I'm not sure entirely how this would work. https://sherlock.epic.com/default.aspx?view=zqn/search#txt=Caboodle doesn't seem to get you there :(
Is your feature request related to a problem? Please describe.
It would be nice to be able to use this to lookup RA's directly by their number
Describe the solution you'd like
For example: uw sherlock ra XXXX
where XXXX is the ra#
Describe alternatives you've considered
For example: uw sherlockRA XXXX
From what I saw of the code, this might be easier?
Is your feature request related to a problem? Please describe.
Add Sherlock Checklist to the search extension
Describe the solution you'd like
uw chk term
goes to this url : https://sherlock.epic.com/default.aspx?view=checklist/search#txt=
Describe alternatives you've considered
None
I've tried to get this to work using two approaches:
The first approach was a bash task with the script inline. It threw this error:
2018-10-12T09:22:20.4798570Z > Host: www.googleapis.com
2018-10-12T09:22:20.4798876Z > User-Agent: curl/7.47.0
2018-10-12T09:22:20.4799006Z > Accept: */*
2018-10-12T09:22:20.4799088Z > Authorization: Bearer null
2018-10-12T09:22:20.4799403Z > x-goog-api-version: 2
2018-10-12T09:22:20.4799682Z > Content-Length: 0
2018-10-12T09:22:20.4799763Z >
2018-10-12T09:22:20.5272825Z < HTTP/1.1 401 Unauthorized
2018-10-12T09:22:20.5276434Z < Vary: X-Origin
2018-10-12T09:22:20.5276939Z < WWW-Authenticate: Bearer realm="https://accounts.google.com/", error=invalid_token
2018-10-12T09:22:20.5277354Z < Content-Type: application/json; charset=UTF-8
2018-10-12T09:22:20.5277453Z < Date: Fri, 12 Oct 2018 09:22:20 GMT
2018-10-12T09:22:20.5277592Z < Expires: Fri, 12 Oct 2018 09:22:20 GMT
2018-10-12T09:22:20.5277883Z < Cache-Control: private, max-age=0
2018-10-12T09:22:20.5278196Z < X-Content-Type-Options: nosniff
2018-10-12T09:22:20.5278472Z < X-Frame-Options: SAMEORIGIN
2018-10-12T09:22:20.5279081Z < X-XSS-Protection: 1; mode=block
2018-10-12T09:22:20.5279174Z < Server: GSE
2018-10-12T09:22:20.5279483Z < Alt-Svc: quic=":443"; ma=2592000; v="44,43,39,35"
2018-10-12T09:22:20.5279798Z < Accept-Ranges: none
2018-10-12T09:22:20.5280058Z < Vary: Origin,Accept-Encoding
2018-10-12T09:22:20.5280528Z < Transfer-Encoding: chunked
2018-10-12T09:22:20.5280612Z <
2018-10-12T09:22:20.5280732Z { [195 bytes data]
The second approach I used was to write the script into a file and execute the file. It throws this error:
2018-10-12T10:01:46.5102062Z /home/vsts/work/r1/a/_MarkIannucci.ChromeUserWebSearchExtension/drop/ChromeWebStoreBashScript.sh: line 4: $'\r': command not found
2018-10-12T10:01:46.5158842Z * Illegal characters found in URL
2018-10-12T10:01:46.5160466Z * Closing connection -1
I am working on this via my #1 pull request. I am able to get this to work using a private azure pipeline where I have the secrets stored in the clear.
Is your feature request related to a problem? Please describe.
Sometimes I need to search multiple sections of the UserWeb with the same query. Galaxy does this a bit for me, but the results show up in the side pane and they don't contain sufficient text for me to know if they'll be useful.
Describe the solution you'd like
Wouldn't it be fantastic if I could use a shortcut to open multiple epic search engines and send off my query to them in different tabs? Wouldn't it be even cooler if I could search google at the same time if I'm looking up a SQL server problem? For example, if I type uw slg galaxy stuff I'm looking for
, I would get two tabs, one searching sherlock and the second searching galaxy. uw slg galaxy dh stuff I'm looking for
would return three.
Is your feature request related to a problem? Please describe.
Sometimes I get too many search results when searching sherlock. With epic recently releasing functionality to allow us to filter SLGs by team, it would be great if the extension could filter SLGs for my team's ownership.
Describe the solution you'd like
Allow me to save my team(s) as an option in the extension and when I type myteam:
in my search string, filter stuff for my team(s)
It would be good if they weren't.
Is your feature request related to a problem? Please describe.
It looks like the only way to get this code to port to Firefox is to use web-ext which needs to pack the extension. It looks like web-ext is only compliant with the browser namespace.
Describe the solution you'd like
Switch the chrome. references to browser. references and confirm it works in chrome; from there, see if it works in firefox, then check it out in Edge
Is your feature request related to a problem? Please describe.
Wouldn't it be sweet to type:
uw max server memory af:clarity,caboodle
and have the userweb return documents filtered by the Clarity and Caboodle applications
Additional context
this won't be fun to implement because Epic's approach to this is to use magic numbers in the search string... so you should probably wait to implement this until after you get the work done to throw a page at people when they click on the magnifying glass
This is cool!
Do you think forum search can be added?
maybe:
uw forums something cool
uw fm something cool
for
https://userweb.epic.com/Search?Query=something%20cool
Is your feature request related to a problem? Please describe.
People will miss announcements on the UserWeb, and a UserWeb topic is not a good place for production documentation
Describe the solution you'd like
If a user clicks the magnifying glass, create a new tab which displays instructions on how to use the Chrome UserWeb Search Extension; also list out key words.
Bonus points, if you can throw a notification on extension updates so people can learn within the product as it evolves.
Describe the solution you'd like
When you're done, announce it here:
https://userweb.epic.com/Thread/60678
Is your feature request related to a problem? Please describe.
In order to filter on a version, you have to specify a particular version. Specifying a particular version is very time consuming because there's a query happening to Epic's database when you go to populate the form and it seems to take 3 seconds or so on my end. In addition each quarter, Epic releases stuff for the base version as well as quarterly sus, so searching a full year takes 30 seconds in their UI.
Describe the solution you'd like
before parsing the search phrase, accept versions information. so If I punch in 2020.02 append the versions=
parameter and populate it with 9200%2C9201 (to cover the SUs).
Bonus points if you can handle >=2020.02 (if user only inputs > assume they mean >=) and get it to populate 9200%2C9201%2C9300 ... etc until you get to the current version which you should figure out based on the month and calendar year.
Describe alternatives you've considered
I asked Epic to offer this functionality in the UI via e-mail. I haven't heard back.
See response in user web thread.
Describe the bug
The code doesn't have tests. We need to identify a framework for unit tests and refactor the code so it can be tested automatically. This probably means moving the bulk of the work done by the event into a function which returns the newURL and then a test which confirms that the url for the entered string is what we want.
Is your feature request related to a problem? Please describe.
We can now filter sherlock results based on next update date. Unfortunately, the filter text that Epic decided to use looks for SLGs using their internal date representation (days since 1/1/1841). I would much prefer to use dates in my locale format or using the date mnemonics.
Describe the solution you'd like
uw slg nu:T+7->T+14
returns all SLGs that have next update dates beginning with seven days from today and ending 14 days from today.
Can you look at making this work cross-platform so firefox users aren't left out in the cold?
Is your feature request related to a problem? Please describe.
It took a while to search the metric repository. It would be nice if I could just type 'uw metric' and my term; even better if I type 'uw metric ####' and it returns the released metric number
https://userweb.epic.com/Thread/80415?repliesSince=2018-10-29T07%3a09%3a35&reply=371800
Ah...yes...I see the same behavior. Thanks for the clarification! It looks like Mark coded the append of 'type=4' to the metric search, but looks like it's missing the & in the query string. Bug it is!
case 'metric':
var newURL = 'https://datahandbook.epic.com/Search/Index?SearchWord=' + encodeURIComponent(trimAlligators(text.substring(6))) + 'type=4';
break;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.