• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gwicke / restbase
88%
master: 92%

Build:
Build:
LAST BUILD BRANCH: update_security_headers
DEFAULT BRANCH: master
Repo Added 23 Jan 2015 05:34AM UTC
Files 29
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH module_option_templating
branch: module_option_templating
CHANGE BRANCH
x
Reset
  • module_option_templating
  • Pchelolo-access_check
  • Pchelolo-redirect_docs
  • Pchelolo-security_filter
  • allow_pipelining
  • api-user-agent
  • api_cleanup
  • aqs_caching
  • background_race
  • bump_preq
  • cache_control_override
  • cassandra_bump
  • cassandra_driver_v2
  • clarify_html_to_wikitext_selser_params
  • clean-up-tid-requests
  • compression
  • config_cleanup
  • container_travis
  • content_type_enforcement
  • cscott-quoted-content-type
  • d00rman-rb-mod-cass-table
  • dataparsoid-listing
  • dependency_update
  • description_update
  • description_update_2
  • disable-swagger-validator
  • disable_nocache_instance_tests
  • doc_updates
  • document_metric_rate_limits
  • dont_coerce_json_post
  • enforce_parsoid_content_types
  • etag_check
  • etags
  • fix_example_config
  • fix_nc
  • fixit
  • forward_user_agent_to_parsoid
  • hacky_listings
  • html_purging_caching
  • ipv6_embedded_support
  • key_rev_value
  • key_value_timeseries
  • kv_cache
  • limit-syntax-highlight-size
  • list_revisions_once
  • listing_clarification
  • local_config_example
  • log_bodyOnly
  • master
  • math_cache_control
  • mathoid_caching
  • metric_prefix_fix
  • metric_trees
  • mobileapps_varnish_caching
  • mod_cleanup
  • module_sharing_fix
  • modules
  • more_client_info_in_log
  • more_efficient_revision_query
  • more_reliable_parsoid_change_detection
  • no_caching_for_non_canonical_requests
  • no_parsoid_retry
  • nocache-headers
  • node_4.1
  • node_5_testing
  • normalize_title
  • optimized_templating
  • package-cleanup
  • pageviews_proxy
  • paging
  • parsoid_bucket_type_option
  • pass_original_previous_content_parsoid
  • pdf_encoding
  • pdf_filename_encoding_T171747
  • preserve_parameters_in_path_by_default
  • printable_pdf
  • private_to_internal
  • promise_chain_opt
  • reqid_failure
  • request_counts
  • require_tid_if_revision
  • rerender
  • rerender_blacklist
  • rest.wikimedia.org_sunset
  • rest_wikimedia_org_logging
  • revert_mobile_config_change
  • review/mforns/366852
  • robots_txt
  • sampled_normalization_logging
  • sampled_version_warnings
  • scrubWikitext
  • section-api
  • security_header_filter
  • security_headers
  • selser
  • service-runner
  • simple_config_example_yaml
  • siteinfo_fetch_failure_code
  • spec_basepath
  • spec_cleanup
  • spec_merging
  • spec_modules
  • spec_swagger_ui_cleanup
  • spec_ui
  • special-wikis
  • statsd-interface
  • stream_response_support
  • streaming_chunk_responses
  • swagger-paths
  • sys_filter
  • table_spec_move
  • temporarily_limit_commons_redirects_to_app
  • test_failures
  • test_iojs
  • textextracts
  • tighten_csp
  • title_data-parsoid_cleanup
  • transform_rate_limits
  • update_cassandra
  • update_cassandra_backend
  • update_parsoid_version
  • update_security_headers
  • use_412_on_precondition_failure
  • use_child_for_logging_and_metrics
  • v0.7.11
  • v0.9.1
  • x-textarea
  • xff

pending completion
446

push

travis-ci

gwicke
Module option templating

This patch adds the ability to template module options using the familiar
request template syntax. This lets us pass down global options like header
whitelists into individual modules, reducing the need for repetition and copy
& paste.

To accommodate passing in templates as well, an additional 'templates'
property is passed into module constructors verbatim, and the one case where
we pass in an apiRequest template is migrated to it.

In this current implementation, we cheat a little bit by only supporting a
single nesting level, with all option templates being directly evaluated
against the service config. We can consider supporting nested scopes as well,
but will need to clean up the way information is passed down the router trees
first. However, in practice a single module inclusion level is all we have
needed so far, and keeping it that way may be good for our sanity. Lets cross
that bridge when we get to it.

One thing that I noticed while working on this patch is that we are doing some
fairly gross and brittle spec referecing & manipulation in our tests. This
patch should give us tools to get rid of this by moving those variable pieces
into a proper service config.

1678 of 1916 relevant lines covered (87.58%)

519.08 hits per line

Relevant lines Covered
Build:
Build:
1916 RELEVANT LINES 1678 COVERED LINES
519.08 HITS PER LINE
Source Files on module_option_templating
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
446 module_option_templating Module option templating This patch adds the ability to template module options using the familiar request template syntax. This lets us pass down global options like header whitelists into individual modules, reducing the need for repetition and... push 17 Nov 2015 04:56AM UTC gwicke travis-ci pending completion  
See All Builds (403)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc