Coder Social home page Coder Social logo

stackexchange / stackexchange.dataexplorer Goto Github PK

View Code? Open in Web Editor NEW
352.0 46.0 86.0 35.37 MB

Stack Exchange Data Explorer

License: MIT License

C# 34.78% CSS 4.27% XSLT 1.25% JavaScript 46.49% HTML 10.07% Batchfile 0.02% TSQL 2.88% Less 0.22% ASP.NET 0.01%

stackexchange.dataexplorer's Introduction

Data Explorer

The Stack Exchange Data Explorer is a tool for executing arbitrary SQL queries against data from the various question and answer sites in the Stack Exchange network.

Quick Guide

Prerequisites

Layout

  • The App directory contains the Data Explorer solution
  • The Migrations directory contains the database evolution scripts and a batch file for running them
  • The Tools directory contains some precompiled utilities for working with Data Explorer
  • The Lib directory contains some 3rd party binaries used in the application
  • The SeedData directory contains seed files to populate the Data Explorer schema with some sample data

Configuration

The database can be brought up to date by running the migrate.local.bat file in the Migrations directory. This assumes an existing SQL Server database named DataExplorer with integrated security enabled. If your environment is configured differently, you will need to modify the connection string in your batch file and web.config file to reflect your setup.

Once done, you'll need to populate the Sites table with a record for each site you intend to query against. You can run the sites.sql file in the SeedData directory to prepopulate the table with a small list of popular Stack Exchange sites. To actually run queries, you will need to create additional databases that reflect the connection values in the Sites table; these can optionally be populated with data from the Stack Exchange data dumps using a custom import process or one of the data dump import tools available on Stack Apps.

Contributing

Development

  • Install git, or a git client of your choosing (such as TortoiseGit, SourceTree, or GitHub Desktop)
  • Fork this repository on GitHub
  • Commit changes to your fork, preferably in easy-to-merge branches
  • Submit a pull request on GitHub with a description of your changes

Providing Feedback

Miscellaneous

Third Party Components

For more information, see "Which tools and technologies are used to build Data Explorer?"

stackexchange.dataexplorer's People

Contributors

andrewphoy avatar artofcode- avatar chuchuva avatar couchand avatar deanward81 avatar frangelso avatar gdalgas avatar glorfindel83 avatar johnmwright avatar jtbandes avatar m0sa avatar markhurd avatar nickcraver avatar ocoster-se avatar rschrieken avatar samsaffron avatar tarynpratt avatar tms avatar xt0rted avatar yellis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stackexchange.dataexplorer's Issues

Remember what site you actually ran a query on in history and allow re-running on that site

Used to be, SEDE would always only link to the query for the site you actually last ran it on in history. That was often useful, but there was also a fair use case for just running it on the currently selected site, since usually that's what you'd end up doing anyway.

Recently, SEDE seems to have switched over to favor only the latter case. I'd like to go back to the earlier behavior, or, if possible, add an additional link (parenthesized or otherwise deemphasized?) with the original site. That way the primary and secondary use cases (current and past, respectively) would both be well supported.

Originally reported at Meta SE.

BIT type for Query Parameters

It would be nice to allow the BIT type for query parameters, and have it render as a Checkbox on the client side.

Stabilize SlickGrid sorting

The current implementation of client-side sorting (see issue #19) uses the native JS .sort() method, which is not stable in some browsers (such as, notably, Chrome). This can lead to weird behavior when sorting by a column that contains duplicate values, as shown e.g. in this animation.

There's a couple of possible ways to fix this:

  1. Change the SlickGrid data sorting code to use a custom stable sort method, as suggested in this article.
  2. Just flat out replace Array.prototype.sort with a stable reimplementation. Here's a suitable drop-in replacement that I've written and added to SOUP.
  3. Modify the sort comparator callback to use the current order of the rows as a tie breaker if the compared values are equal. This would be the simplest solution if the previous position of the rows is easily accessible in the comparator, which I'm not sure about.

See also:

Periodically changing contents of the "Featured" queries page

Hi everyone,
I believe that the "Featured" tab is handled manually. They are very old queries from 2011-2012. I personally prefer to see different queries from time to time. I think it would be a good idea to change the featured queries periodically based on popularity (for example weekly)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.