Skip to content

Include more features in API usage list - #7221

Merged
fregante merged 9 commits into
refined-github:mainfrom
ilike2burnthing:tags/scopes
Feb 8, 2024
Merged

fregante merged 9 commits into
refined-github:mainfrom
ilike2burnthing:tags/scopes

Conversation

@ilike2burnthing

Copy link
Copy Markdown
Contributor

Proof of concept only, to get opinions on the idea, hence just a few examples.

Addresses #7218 (comment).

Also addresses #7218 (comment) by searching for Scopes: but not Scopes: NONE in the source/features/ directory.

Test URLs

N/A

Screenshot

N/A

@ilike2burnthing
ilike2burnthing marked this pull request as draft January 16, 2024 22:38
@busches

busches commented Jan 16, 2024 •

Copy link
Copy Markdown
Member

Maybe if it was automated, but manual means it needs to be maintained and there's a high chance it gets outdated quickly.

The extension is designed to be used with a PAT, this is a very niche request.

@ilike2burnthing

ilike2burnthing commented Jan 16, 2024 •

Copy link
Copy Markdown
Contributor Author

Thanks for the feedback. Not sure if there's ever a case where a change needs to be made to all features that require a certain scope. If not, then there's likely little benefit here to the maintainers.

Also not sure how well this carries across here, but I'm one of the maintainers for Jackett, and for our 500+ indexer definition files we have tags (where available) for the relevant site software used. It's useful for finding an existing file as a template for a new one, or if needing to make sweeping changes for a specific software or version update. The upkeep is generally just when another change is made to the file we check if the tag is current.

In lieu of this idea, is this search any closer to being a catch all?

@yakov116

Copy link
Copy Markdown
Member

While its a nice idea I agree with @busches unless its done automatically this will get stale

@busches

busches commented Jan 17, 2024

Copy link
Copy Markdown
Member

In lieu of this idea, is this search any closer to being a catch all?

No, as you're still missing all calls to helpers that make an API call.

@ilike2burnthing

Copy link
Copy Markdown
Contributor Author

Ok, so to find helpers that make API calls would we use this search?

If so, with just those 5 results, can we use this search to return all features requiring a personal token? If not, a little help would be appreciated here.

I dropped api.v4 and expecttoken as they're from api.ts, so are redundant.

Technically does-file-exist.ts isn't used anywhere, so could be dropped as well. In fact, should it have been removed altogether in #6720?

@fregante

Copy link
Copy Markdown
Member

I'm not interested in keeping this up to date, I already explained I don't want to support token-less usage. The options page already clarifies what each scope is used for. If a feature doesn't work, open the console to find out why, that's always been the solution and it's already part of the bug report template.

@fregante fregante closed this Jan 17, 2024
@ilike2burnthing
ilike2burnthing deleted the tags/scopes branch January 17, 2024 04:20
@fregante

Copy link
Copy Markdown
Member

Something I'd support is to update the link we have in the options page I think. It links "some features use the api" and it just searches the word "api". We can improve it to include more keywords

@ilike2burnthing

ilike2burnthing commented Jan 17, 2024 •

Copy link
Copy Markdown
Contributor Author

Something I'd support is to update the link we have in the options page I think. It links "some features use the api" and it just searches the word "api". We can improve it to include more keywords

Yea, I was trying to do that in this comment - #7221 (comment). See if it's of any use. 49 features sound about right?

@fregante fregante changed the title PoC: Add Scopes tags to features Include more features in API usage list Jan 17, 2024
@fregante

Copy link
Copy Markdown
Member

If you restore the branch I can reopen the PR

@ilike2burnthing
ilike2burnthing restored the tags/scopes branch January 17, 2024 05:15
@ilike2burnthing

Copy link
Copy Markdown
Contributor Author

Done.

@fregante fregante reopened this Jan 17, 2024
@fregante fregante added the meta Related to Refined GitHub itself label Jan 17, 2024
@fregante

Copy link
Copy Markdown
Member

The PR is open, would you like to make those changes?

@ilike2burnthing

Copy link
Copy Markdown
Contributor Author

Oh! My bad, I completely misunderstood. I thought you were just going to use this as a jumping off point and make changes yourself to Include more features in API usage list. I'm not really sure what you had in mind for that.

The only change I could really make is to the search URL in options.html, based on #7221 (comment) (if that's correct).

@fregante

fregante commented Feb 2, 2024

Copy link
Copy Markdown
Member

The only change I could really make is to the search URL in options.html

Correct. Currently this PR also affects other files, which need to be reverted

@ilike2burnthing
ilike2burnthing marked this pull request as ready for review February 2, 2024 10:18
@fregante
fregante merged commit fc0c709 into refined-github:main Feb 8, 2024
@fregante

fregante commented Feb 8, 2024

Copy link
Copy Markdown
Member

Thank you! This is helpful

@ilike2burnthing
ilike2burnthing deleted the tags/scopes branch February 8, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

4 participants