Changes between Initial Version and Version 1 of SummerOfCode2019


Ignore:
Timestamp:
Feb 4, 2019, 3:36:17 AM (5 years ago)
Author:
Carlton Gibson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SummerOfCode2019

    v1 v1  
     1Google's Summer of Code 2019
     2
     3Django is a mentor organization for the 2019 Google Summer of Code. Read ​Google's page for more information on how the program works.
     4
     5Django's GSoC program is being coordinated by Carlton Gibson.
     6
     7Mentors
     8
     9If you're interested in mentoring -- supervising a student in work on Django-related activities -- add your name, email, and the sort of projects you're interested in mentoring here:
     10
     11Carlton Gibson (carlton.gibson@noumenal.es) - Anything, most likely.
     12
     13Students
     14
     15Student application period opens ... ends on ....
     16
     17If you'd like to get started on your proposal early, we'll be looking for a few things.
     18
     19You'll need to have a concrete task in mind (some ideas are below) along with a solid idea of what will constitute "success" (you tell us).
     20If your proposal is a single large feature, library or site, you'll need to present a detailed design specification. This proposal should be posted to ​django-developers, where it can be refined until it is accepted by the developer community.
     21We'll want to know a bit about you -- links to previous work are great, if any. If you're proposing something ambitious, you'll need to convince us that you're up to the task.
     22You'll also need to provide us with a schedule, including a detailed work breakdown and major milestones so your mentor can know if and when to nag you :)
     23Here's an example of an accepted proposal from a previous year:
     24
     25​https://gist.github.com/chrismedrela/82cbda8d2a78a280a129
     26Note that none of the ideas below are good enough to be submissions in their own right (so don't copy and paste)! We'll want to know not just what you want to do but how you plan to pull it off.
     27
     28Don't feel limited to the ideas below -- if you've got a cool project you want to work on, we'll probably be able to find you a mentor. We plan on approving as many projects as we possibly can.
     29
     30We're accepting any GSOC proposal that fits one of the following three categories:
     31
     32Work on Django itself - such as the ORM, forms, etc. This is what we've traditionally accepted GSoC entries in.
     33Work on tools to support Django - the dashboard (​https://dashboard.djangoproject.com/) is a good example of an existing tool that would have fit into this category.
     34Work on libraries that supplement or add new features to Django to ease development - South and Django Debug Toolbar are good examples of existing projects that would have fit here.
     35We're not looking for people to work on existing third-party libraries - we aren't able to guarantee commit access to them. We may allow an exception if a maintainer of the library in question agrees to help mentor beforehand.
     36
     37The broadening in scope is to allow people to work on new ideas to help Django development and developers without tying you down to having to implement it in the core codebase (and thus ruling out some projects that might otherwise be useful).
     38
     39We're still going to be strict with what we accept - you'll need to provide a strong use case for your idea and show that it would be useful to a majority of developers or significantly improve the development of Django itself.
     40
     41We're not looking for small groups of incremental updates - like "improve Django's Trac" - nor are we looking for impossible tasks, like "replace Trac with this brand new issue tracker I'm writing". What you propose should be a single project, achievable within the time period of GSoC, and something the core developers can help mentor you on.
     42
     43We're also not looking for sites or projects that are merely written in Django - this GSoC is not for you to propose your new forum hosting site or amazing Django-based blogging engine.
     44
     45Note that when you contribute code, you will be expected to adhere to the same contribution guidelines as any other code contributor. This means you will be expected to provide extensive tests and documentation for any feature you add, you will be expected to participate in discussion on ​django-developers when your topic of interest is raised. If you're not already familiar with ​Django's contribution guidelines, now would be a good time to read them - even if you're not applying to work on Django core directly, we'll still want the same level of contribution.
     46
     47How can I improve my chances of being accepted?
     48
     49The best thing you can do to improve your chances to be accepted as a Django GSoC student is to start contributing now. Read up on ​Django’s contribution documentation and make yourself known to the core team by your contributions (ideally, related to the area of your proposal). That way, when it comes time to evaluate student applications, you’ll be a known individual and more likely to be able to get the attention you need to develop a proposal.
     50
     51Communication
     52
     53All GSOC-related communication is handled via the ​django-developers mailing list. Any proposals for GSOC should be submitted there, as well as discussion on the proposed projects and any updates that students post.
     54
     55Please be careful to keep content to the list clear and purposeful; if you have an idea, update, or criticism, please make sure you describe it in detail; it can be tedious asking people to clarify any vague statements.
     56
     57Ideas
     58
     59Here are some suggestions for projects students may want to propose (please feel free add to this list!). This isn't by any means the be-all and end-all of ideas; please feel free to submit proposals for things not on this list. Remember, we'd much prefer that you posted a draft proposal and your rough timeline / success conditions to the ​django-developers list, even if it's already on the list below; it will help you get feedback on choosing the right part of a problem, as well as helping to see if there is any interest before you start drafting a full proposal.
     60
     61When developing your proposal, try to scope ideas/proposals to the 4-month timeline -- simply proposing to fix a ticket or two will probably result in your proposal being rejected in favor of a more ambitious one. The GSoC does not cover activities other than coding, so certain ideas ("Write a more detailed tutorial" or "Create demonstration screencasts") are not suitable for inclusion here.
     62
     63On the other side, though, be sure to be concrete in your proposal. We'll want to know what your goals are, and how you plan to accomplish them.
     64
     65In no particular order:
     66
     67Add Cross-DB JSONField (etc)
     68
     69Complexity: Medium
     70
     71Task is to bring the fields from `contrib.postrges` into core. In particular JSONField. All supported DBs now have native JSON handling. There are versions for all DBs except SQLite already available to use as base examples.
     72
     73First step is a POC field for SQLite. Then creating a unified field, with multiple backend. Finally determining a migration path from `contrib.postgres`.
     74
     75JSONField is the obvious main target here, but `ArrayField` and even a suitably named version of `HStoreField` would be desirable too.
     76
     77
     78Replace Form Media Class
     79
     80Complexity: Hard
     81Quoting Loic on the ticket: "My biggest issue with it is that it's a very naive approach to a complicated problem. It doesn't really fit with today's development practices where a project can easily grow to hundreds of static assets, where javascript offers concepts like AMD, where CSS gained preprocessors like LESS or SASS and where files are concatenated for performance.
     82
     83Having each input widget pull its own assets can also be a performance footgun, and IMO it's hardy something we should recommend."
     84
     85You will need to come up with a design here. There are a variety of third-party libraries from which you might glean best practices however the frontend tech world is currently in a state of reinvention so it might be hard to develop a suitable API that's suitable now but not in the future.
     86
     87Test framework cleanup
     88
     89Complexity: Low
     90Django has an extensive test framework for Python code, a suite of tools to make server-side testing easier, and a project policy that no new code is added without tests. This has been a significant contributor to the stability of Django as a project.
     91
     92However, this now means that Django has a very large and powerful test suite without much separation or control from a user's perspective, so the goal of this project would be to add new options and suite types to allow running of specific types of tests, be they only a certain class (e.g. unit-tests only, selenium tests only) or excluding tests (such as the ones in contrib or third-party apps) from the main test run easily.
     93
     94Django's test suite is also very large with over 1000 models. In some areas, the tests are poorly structured and it is not clear where similar related tests should be placed. It is likely there may be some duplication of features tested, and there are certainly edge cases which are not tested. For example, standardising all the unit tests necessary for a particular model field type would be beneficial.
     95
     96Issues to consider:
     97
     98How would users declare which tests they want to run?
     99Which tests should be enabled by default, and how hard should this be to change?
     100How will it be app maintainers run their tests?
     101Should there be additional hooks to, for example, allow tests to be run against different database backends in sequence?
     102Are there tools similar to the new --debug-sql option which would help developers working on Django?
     103See also:
     104
     105#13873 (more of a symptom of this problem)
     106Part of this task could be auditing ​Django's coverage report and adding missing tests and removing dead code.
     107Improving the less popular database backends
     108
     109Complexity: Medium
     110Django supports several database backends, but not equally. The less popular backends -- Oracle in core, as well as open-source backends outside core, could probably use some love. As an example, Oracle has some problems:
     111
     112The handling of case in database object names is problematic (e.g. #20487)
     113Add more issues?
     114While these alone would not fill an agenda for a full GSoC project, an interested student could collect enough related issues -- perhaps in more than one backend -- to keep busy for the whole term.
     115
     116Keep in mind that for working on 3rd-party backends, a committer for the relevant backend will probably need to be involved in mentoring; however, given such involvement, Django will accept such GSoC projects.
     117
     118See also:
     119
     120Trac's list of Oracle issues
     121Similar queries for 3rd-party backends should be added here
     122Formset improvements
     123
     124Complexity: Low
     125One of the big problems in web programming is making a request object available everywhere that it might be needed. Some frameworks tackle this problem by using a threadlocal. A threadlocal is essentially a global variable that allows you to access stateful information, such as the currently active request.
     126
     127Django takes a more structured approach, and encourages you to use function arguments and class attributes to pass around stateful information. This requires more discipline on the developer, but ultimately leads to more robust, less error-prone code that is easier to test.
     128
     129The counterargument to Django's approach is that passing the request around everywhere that it might be needed is difficult. Formsets are one example given in support of this - Django's formsets are a classic example where you might want to pass a request down to an internal form - but this is surprisingly difficult to do with Django's FormSet infrastructure.
     130
     131The problem isn't just about requests, either - there's a general problem in Django's FormSet and ModelFormSet objects that makes it difficult to pass in arguments to the Forms that are on them, or otherwise control the save process. This could be a request, the user that is making a particular change, or some other "ownership" related information.
     132
     133While it is *possible* to work around this problem, it *should* be a well documented, easy to use capability.
Back to Top