Title: Added ordered question inserting feature and more configuration options by HarrySu123 · Pull Request #19 · lambda-feedback/in2lambda · GitHub
Open Graph Title: Added ordered question inserting feature and more configuration options by HarrySu123 · Pull Request #19 · lambda-feedback/in2lambda
X Title: Added ordered question inserting feature and more configuration options by HarrySu123 · Pull Request #19 · lambda-feedback/in2lambda
Description: Overview renaming of Module to Set implemented ordered question inserting added more configuration options for the api added relevant and correct python docstring where needed fixed test.yml to pass properly renaming of Module to Set The file/class Module.py has been renamed to set.py. All reference to "module" has been changed to "set", to match the terminology of lambda feedback. implemented ordered question inserting Done inside json_convert.py def _zip_sorted_folder(folder_path, zip_path): """Zips the contents of a folder, preserving the directory structure. Args: folder_path: The path to the folder to zip. zip_path: The path where the zip file will be created. """ with zipfile.ZipFile(zip_path, "w") as zf: for root, dirs, files in os.walk(folder_path): # Sort files for deterministic, alphabetical order for file in sorted(files): abs_path = os.path.join(root, file) rel_path = os.path.relpath(abs_path, folder_path) zf.write(abs_path, arcname=rel_path) used to create the zip folder and files, and order the files in deterministic, alphabetical order to achieve ordered question inserting. called inside converter(), added more configuration options for the api lambda feedback, apart from the question.json file also uses a set.json file with extra settings like the name, description... etc. json_convert/minimal_template_set.json contains the minimal_template_set.json it is used similar to how monimal_template_question.json is used The settings used for workedSolutionVisibility, structuredTutorialVisibility and chatbotVisibility all uses the same three options, OPEN, HIDE and OPEN_WITH_WARNINGS. These three options is referred to using enum classes to avoid magic numbers. This can be found in api/visibility_status.py, along with a Controller that wraps around it to allow for custom methods and ease of conversion between the 3. The relevant settings are also added to the class Set.py as attributes fixed test.yml to pass properly updates setuptools, wheel and virtualenv when installing python dependencies, ensuring it is always up to date. fixed Linting Checks and pytests by running all the scripts inside the poetry virtual environment.
Open Graph Description: Overview renaming of Module to Set implemented ordered question inserting added more configuration options for the api added relevant and correct python docstring where needed fixed test.yml to pa...
X Description: Overview renaming of Module to Set implemented ordered question inserting added more configuration options for the api added relevant and correct python docstring where needed fixed test.yml to pa...
Opengraph URL: https://github.com/lambda-feedback/in2lambda/pull/19
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:23224161-395f-57e9-1b73-4d0b62ab36c5 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E21A:CDD1B:215B64B:2A65583:69919597 |
| html-safe-nonce | 2d751ebc6580fd437653d105e169b810be32912d58a002d015718dfbe21cbef1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjFBOkNERDFCOjIxNUI2NEI6MkE2NTU4Mzo2OTkxOTU5NyIsInZpc2l0b3JfaWQiOiIxNzQxMjQ5ODU4OTEwNjU1ODk1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7710aa2d274bbf811b1be987f3feb2a19ece8334c62c77edeae48df7578c0f6a |
| hovercard-subject-tag | pull_request:2796492223 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/lambda-feedback/in2lambda/pull/19/checks |
| twitter:image | https://avatars.githubusercontent.com/u/147165239?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/147165239?s=400&v=4 |
| og:image:alt | Overview renaming of Module to Set implemented ordered question inserting added more configuration options for the api added relevant and correct python docstring where needed fixed test.yml to pa... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-cache |
| go-import | github.com/lambda-feedback/in2lambda git https://github.com/lambda-feedback/in2lambda.git |
| octolytics-dimension-user_id | 87027795 |
| octolytics-dimension-user_login | lambda-feedback |
| octolytics-dimension-repository_id | 657816860 |
| octolytics-dimension-repository_nwo | lambda-feedback/in2lambda |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 657816860 |
| octolytics-dimension-repository_network_root_nwo | lambda-feedback/in2lambda |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width