-
Notifications
You must be signed in to change notification settings - Fork 34
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
Script to narrow down on changes (methods) that's considered for API migration #963
Comments
@niccolopaganini where is this script? Can you please submit a draft PR? |
I am trying to omit the process of scraping it twice and rather scrape the code in one go. The problem I am currently facing is that it is picking up weird artifacts. For example:
and then we will have our list of methods. |
Update: I am now able to access everything from the URL. However, few caveats I noticed
The final step that is to be done is to compare this CSV and the one we compiled to get matching packages. With that, we can infer:
|
To reiterate, the updated method is as follows:
|
Update 2:I am able to now sort it for each type. However, there is repetition in the scraping process and the title of the table is missing (crucial to know whether it is an added method, changed method, field, etc.) Attached screenshot below shows repetition and the lack of a title at the start of the cell which is crucial for identification |
In general, it is better to use text rather than screenshots to illustrate errors, since screenshots are not searchable.
It would be helpful to see the code as you make these changes. I don't see any draft PR or updates to the existing PR...
It seems like you should be able to address the repetition by simply comparing the strings and getting a unique set. Is there a reason that this doesn't work? |
I closed the existing PR (e-mission/e-mission-phone#1010) and opened a new one (e-mission/e-mission-phone#1025).
I had to polish that a bit as it did not apply to everything. Fixed this problem. |
Pending task is to compare and match. WIll update the status on that in a couple of hours. |
I have been experiencing network issues for the past 48 hours. Will update the issue as soon as it is up and running |
why is environment.yml in an_archive? It is still valid and needs to be activated for the script to run, correct?
|
Changing from absolute paths to relative in
working on updating this script currently (will be renamed to This is the change that I made but I am working on it currently:
|
Common imports will have the following:
And all the scripts will be updated |
Please do not make a copy of the file. Having multiple copies that are subtly different just makes it more confusing for users.
I don't understand the point of "common imports" given that, in my review, I suggested combining all the files. |
Oh I was making it so that I can differentiate it locally. My apologies fort not making it clear.
|
For efficiency, you might want to discuss pros and cons and make the design decision before implementation. Otherwise, you can waste time changing the code in the PR in a way that you will have to change again anyway. |
I have taken the above and condensed them to the following:
While I can't just the first table as it supports a form of extreme modularity, I have compiled them to these 4 scripts (obviously could use better names for script) where someone other than me can use/ modify the packages accordingly. What do you think of this @shankari? This also supports modularity and is not fragmented enough and each python script serves a particular purpose. |
I was looking at
(for example)
Did you mean something like this? |
Referencing from previous issue #934. New issue created not to overwhelm the aforementioned issue. To highlight problems:
Current Process/ changes
For example: android.view.accessibility.AccessibilityNodeInfo ➡️ AccessibilityNodeInfo
An example for the above (that I got as an output from classes):
Code:
Output:
The text was updated successfully, but these errors were encountered: