-
Notifications
You must be signed in to change notification settings - Fork 42
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
Remove unimplemented apis #1264
Conversation
edb80c2
to
a53651b
Compare
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've built and run the extension and it works normally.
It's hard to test that something isn't there, but looking at the code I don't see any methods removed that have an implementation and there would definitely be a build error if some reference was left.
I did however find three other methods that don't have an implementation:
xk6-browser/common/browser_context.go
Line 261 in a53651b
return fmt.Errorf("BrowserContext.setExtraHTTPHeaders(headers) has not been implemented yet: %w", k6error.ErrFatal) xk6-browser/chromium/browser_type.go
Line 220 in a53651b
k6common.Throw(rt, errors.New("BrowserType.LaunchPersistentContext(userDataDir, opts) has not been implemented yet")) Line 820 in a53651b
k6ext.Panic(p.ctx, "Page.goBack(opts) has not been implemented yet")
I'm not sure if there's a reason why these should remain, but I just wanted to point it out.
👍
It seems safe to remove these ones.
@ankur22 probably hasn't removed |
There is no need to have these present in the code since we're not planning on implementing them any time soon. Once we do implement them we can add them back in.
a53651b
to
d6409e0
Compare
Yep, good spot, I've removed them in 4a2e584.
As @inancgumus mentioned it was indeed due to the |
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.
👍
What?
Removing the unimplemented API function bodies.
Why?
It's confusing when auditing APIs to have some that do not have any implementation. It's as if they are a priority, which is not the case. We will add the APIs that we think we need and when the community asks for them.
Checklist
Related PR(s)/Issue(s)